plotSpatialClusters: Plot spatial clusters

View source: R/spatial_transcriptomics.R

plotSpatialClustersR Documentation

Plot spatial clusters

Description

Plot clusters in tissue image.

Usage

plotSpatialClusters(
  object,
  assay.type = "ST",
  sample.name = "Sample1",
  cluster.column = "population",
  colors.column = "colors",
  annotate_centroids = FALSE,
  point.size = 1.75,
  title = NULL
)

Arguments

object

the CellRouter object.

assay.type

character; the type of data to use.

sample.name

character; the name of the tissue sample.

cluster.column

character; the name of the column where the clustering information is stored.

colors.column

character; the name of the column where the color of each cluster is stored.

annotate_centroids

boolean; annotate the cluster centroids.

point.size

numeric; the size of the spot in the image.

title

character; figure title.

Value

ggplot2; plot.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.