Skip to contents

Select region of interest from plot

Usage

selectRegion(data, x.col = "x", y.col = "y")

Arguments

data

A data.frame object.

x.col

Column name of the x coordinates.

y.col

Column name of the y coordinates.

Value

A data.frame object in the global environment.

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")