Spatial feature interpolation
# S4 method for class 'giotto,missing'
interpolateFeature(
x,
spat_unit = NULL,
feat_type = NULL,
feats,
spatvalues_params = list(),
spat_loc_name = "raw",
ext = NULL,
buffer = 50,
name_fmt = "%s",
savedir = file.path(getwd(), "interp_rasters"),
overwrite = FALSE,
verbose = NULL,
...
)
# S4 method for class 'spatLocsObj,data.frame'
interpolateFeature(
x,
y,
ext = NULL,
buffer = 50,
rastersize = 500,
name_fmt = "%s",
savedir = file.path(getwd(), "interp_rasters"),
overwrite = FALSE,
...
)
object containing coordinates to use interpolation with
(optional) spatial unit to use
(optional) feature type to use
character vector. Features to interpolate from the `giotto` object
list. Additional list of parameters to pass to [spatValues()] to help with data retrieval from `giotto` object
character. Name of spatial locations to use. Values to be interpolated are spatially mapped to these locations by cell_ID.
`SpatExtent`. (optional) extent across which to apply the interpolation. If not provided, will default to the extent of the spatLocsObj expanded by the value of `buffer`. It can be helpful to set this as the extent of any polygons that will be used in aggregation.
numeric. (optional) default buffer to expand derived extent by if `ext` is not provided.
character. sprintf fmt to apply to `feats` when naming the resulting interpolation `giottoLargeImage` objects. Default is no change.
character. Output directory. Default is a new `interp_rasters` folder in working directory.
logical. Whether raster outputs should be overwritten if the same `filename` is provided.
be verbose
additional params to pass downstream methods
data.frame-like. Values for interpolation. Must also have a `cell_ID` column and that matches with `x`.
numeric. Length of major axis in px of interpolation raster to create.
`giotto` method returns a `giotto` object with newly made appended
feature interpolation rasters as `giottoLargeImages`
The data.frame method returns a `giottoLargeImage` linked to an interpolated raster that is written to disk as GeoTIFF.