Select region of interest from plot
Arguments
- data
A data.frame object.
- x.col
Column name of the x coordinates.
- y.col
Column name of the y coordinates.
Examples
data("xenium_bc_spe")
spe_b <- spe[, SummarizedExperiment::colData(spe)$cell_type == "B cells"]
dat <- as.data.frame(SpatialExperiment::spatialCoords(spe_b))
# selectRegion(dat, x.col = "x_centroid", y.col = "y_centroid")