![](../logo.png)
addSpatialCentroidLocations
addSpatialCentroidLocations.Rd
Calculates the centroid locations for the polygons within one or more selected layers
Usage
addSpatialCentroidLocations(
gobject,
poly_info = "cell",
feat_type = NULL,
spat_loc_name = "raw",
provenance = poly_info,
return_gobject = TRUE,
verbose = TRUE
)
Arguments
- gobject
giotto object
- poly_info
polygon information
- feat_type
feature type
- spat_loc_name
name to give to the created spatial locations
- provenance
(optional) provenance to assign to generated spatLocsObj. If not provided, provenance will default to
poly_info
- return_gobject
return giotto object (default: TRUE)
- verbose
be verbose