plotImage: Plots an image with specified from and to cell types.

View source: R/plotImage.R

plotImageR Documentation

Plots an image with specified from and to cell types.

Description

Plots an image with specified from and to cell types.

Usage

plotImage(
  cells,
  imageToPlot,
  from,
  to,
  imageID = "imageID",
  cellType = "cellType",
  spatialCoords = c("x", "y")
)

Arguments

cells

A SummarizedExperiment object.

imageToPlot

The ID of the image to be plotted.

from

The "from" cell type.

to

The "to" cell type.

imageID

The name of the imageID column in the SummarizedExperiment object.

cellType

The name of the cellType column in the SummarizedExperiment object.

spatialCoords

The names of the spatialCoords column if using a SingleCellExperiment.

Value

A ggplot object.

Examples

data("diabetesData")
plotImage(diabetesData, "A09", from = "acinar", to = "alpha")


ellispatrick/spicyR documentation built on Dec. 20, 2024, 10:50 a.m.