bbox,SpatialFeatureExperiment-method | R Documentation |
Find bounding box of the union of all colGeometries
and
annotGeometries
of each sample in the SFE object. This can be used to
remove empty space so the tissue and geometries have one corner at the origin
so all samples will be on comparable coordinates.
## S4 method for signature 'SpatialFeatureExperiment'
bbox(sfe, sample_id = "all", include_images = FALSE, include_row = TRUE)
sfe |
A |
sample_id |
Sample(s) whose bounding box(es) to find. The bounding box
would be for the union of all |
include_images |
Logical, whether the bounding boxes should include
image extents. Defaults to |
include_row |
Logical, whether the bounding boxes should include
|
For one sample, then a named vector with names xmin
,
ymin
, xmax
, and ymax
specifying the bounding box. For
multiple samples, then a matrix whose columns are samples and whose rows
delineate the bounding box.
library(SFEData)
sfe <- McKellarMuscleData("small")
bbox(sfe, sample_id = "Vis5A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.