Skip to contents

Plot cells based on spatial coordinates.

Usage

plotSpatial(spe, reverseY = FALSE, n = 30, ...)

Arguments

spe

A SpatialExperiment object.

reverseY

Reverse y coordinates.

n

Integer value. The number of distinct color to be generated, default is 30.

...

Aesthetic mappings to pass to ggplot2::aes_string().

Value

A ggplot object.

Examples


data("xenium_bc_spe")

plotSpatial(spe, shape = ".", color = cell_type, size = 0.3, alpha = 0.2)