plot.statepred.composition: Summarize the predicted cell states of an object

View source: R/main.R

plot.statepred.compositionR Documentation

Summarize the predicted cell states of an object

Description

Makes a barplot of the frequency of cell states in a query object.

Usage

## S3 method for class 'statepred.composition'
plot(
  ref,
  query,
  labels.col = "functional.cluster",
  cols = NULL,
  metric = c("Count", "Percent")
)

Arguments

ref

Reference object

query

Seurat object with query data

labels.col

The metadata field used to annotate the clusters (default: functional.cluster)

cols

Custom color palette for clusters

metric

One of 'Count' or 'Percent'. 'Count' plots the absolute number of cells, 'Percent' the fraction on the total number of cells.

Value

Barplot of predicted state composition

Examples

plot.statepred.composition(query_example.seurat)

carmonalab/ProjecTILs documentation built on April 13, 2025, 10:04 p.m.