Plot ROIs on spatial.
Arguments
- spe
A SpatialExperiment object.
- id
Character. The name of the column of colData(spe) containing the cell type identifiers. Set to cell_type by default.
- show.legend
Logical. Show legend or not.
- ...
Aesthetic mappings pass for point.
Examples
data("xenium_bc_spe")
coi <- c("Breast cancer", "Fibroblasts")
spe <- gridDensity(spe, coi = coi)
spe <- findROI(spe, coi = coi, method = "walktrap", steps = 5)
plotROI(spe, size = 0.3, alpha = 0.2)