Plot grid-based density.
Arguments
- spe
A SpatialExperiment object.
- coi
A character vector of cell types of interest (COIs).
- probs
Numeric value between 0 and 1, used for filtering uninformative grid, default is 0.8.
Examples
data("xenium_bc_spe")
spe <- gridDensity(spe)
plotDensity(spe, coi = "Breast cancer")
#> Warning: Removed 44 rows containing missing values or values outside the scale range
#> (`geom_tile()`).
plotDensity(spe, coi = "Fibroblasts")
#> Warning: Removed 9 rows containing missing values or values outside the scale range
#> (`geom_tile()`).