plotSelectedClusters: Plot selected spatial clusters

View source: R/spatial_transcriptomics.R

plotSelectedClustersR Documentation

Plot selected spatial clusters

Description

Plot selected clusters in tissue image.

Usage

plotSelectedClusters(
  object,
  assay.type = "ST",
  sample.name = "Sample1",
  cluster.column = "population",
  colors.column = "colors",
  selected_clusters,
  facets = FALSE,
  annotate_centroids = FALSE,
  num.cols = 2,
  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.

selected_clusters

list; a vector containing the name of the clusters that will be plotted for each tissue sample.

facets

boolean; plot selected clusters in different facets.

annotate_centroids

boolean; annotate the cluster centroids.

num.cols

numeric; the number of columns in the output figure.

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.