plotTernary.Seurat | R Documentation |
Create ternary plots that show similarity between single cells and selected three terminals in a ternary baricentric coordinate.
## S3 method for class 'Seurat'
plotTernary(
x,
layer = "counts",
assay = NULL,
clusterVar = NULL,
processed = FALSE,
dotColorBy = NULL,
legendTitle = NULL,
...
)
x |
A Seurat object |
layer |
Layer in the specified assay to use. Default |
assay |
The assay to get data from. Default |
clusterVar |
A variable name in meta.data ( |
processed |
Logical. Whether the input matrix is already processed.
|
dotColorBy |
A vector/factor for coloring dots, can be either categorical
(must be character or factor) or continuous. Default |
legendTitle |
Title on the legend/colorbar. Default |
... |
Arguments passed on to
|
By default, a "ggplot" object when byCluster
is not specified,
a list of "ggplot" object when byCluster
is specified. When
interactive = TRUE
, a "plotly" object is returned. When
returnData = TRUE
, a list of similarity matrix and aggregated velocity
matrix is returned.
Other plotTernary:
plotTernary()
,
plotTernary.SingleCellExperiment()
# Seurat example
library(Seurat)
srt <- CreateSeuratObject(rnaRaw)
Idents(srt) <- rnaCluster
gene <- selectTopFeatures(srt, vertices = c("OS", "RE", "CH"))
plotTernary(srt, features = gene, vertices = c("OS", "RE", "CH"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.