plot.statepred.composition | R Documentation |
Makes a barplot of the frequency of cell states in a query object.
## S3 method for class 'statepred.composition'
plot(
ref,
query,
labels.col = "functional.cluster",
cols = NULL,
metric = c("Count", "Percent")
)
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. |
Barplot of predicted state composition
plot.statepred.composition(query_example.seurat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.