Draw a contour region on some density level
Usage
contour2sf(spe, contour, coi, cutoff)
Arguments
- spe
A SpatialExperiment object.
- contour
Name in metadata.
- coi
A character vector of cell types of interest (COIs).
- cutoff
A numeric scalar specifying the density cutoff.
Value
An sf object of the contour region of the specified level.