Visualize raster images stored in Kandinsky data

SlidePlot(
  seurat = NULL,
  max.px = 10^6,
  img_type = c("img", "mask"),
  as.ggplot = T
)

Arguments

seurat

a Seurat object containing Kandinsky data (`KanData()`)

max.px

numeric value indicating the number of image pixels to plot. Higher values will give a better resolution and a heavier image size

img_type

type of raster image stored in Kandinsky data. Must be one of the following: `img`, `mask`

as.ggplot,

boolean, whether returning a plot created with `tidyterra::geom_spatraster_rgb()` function (TRUE) or using `terra::plotRGB()` function

Value

Kandinsky image plot, as a base R plot (as.ggplot=F) or as a ggplot object (as.ggplot=T)