plot_image: plot_image: Generate a ggplot object of the tissue image

View source: R/plot_image.R

plot_imageR Documentation

plot_image: Generate a ggplot object of the tissue image

Description

Creates ggplot objects of the tissue images when available within the STlist

Usage

plot_image(x = NULL, samples = NULL)

Arguments

x

an STlist

samples

a vector of numbers indicating the ST samples to plot, or their sample names. If vector of numbers, it follow the order of names(x@counts). If NULL, the function plots all samples

Details

If the STlist contains tissue images in the ⁠@misc⁠ slot, the plot_image function can be used to generate ggplot objects. These ggplot objects can be plotted next to quilt plots (STplot function) for comparative analysis.

Value

a list of plots


FridleyLab/spatialGE documentation built on April 14, 2025, 9:37 a.m.