Description Usage Arguments Value Author(s) See Also Examples
Plot Feature
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | plotFeatureTSNE(object, ...)
plotFeatureUMAP(object, ...)
## S4 method for signature 'SingleCellExperiment'
plotFeatureTSNE(object, features,
color = NULL, pointSize = getOption("pointSize", 0.75),
pointAlpha = getOption("pointAlpha", 0.75), label = TRUE,
labelSize = getOption("labelSize", 6L), dark = FALSE, grid = FALSE,
legend = FALSE, aspectRatio = 1L)
## S4 method for signature 'seurat'
plotFeatureTSNE(object, features, color = NULL,
pointSize = getOption("pointSize", 0.75),
pointAlpha = getOption("pointAlpha", 0.75), label = TRUE,
labelSize = getOption("labelSize", 6L), dark = FALSE, grid = FALSE,
legend = FALSE, aspectRatio = 1L)
## S4 method for signature 'SingleCellExperiment'
plotFeatureUMAP(object, features,
color = NULL, pointSize = getOption("pointSize", 0.75),
pointAlpha = getOption("pointAlpha", 0.75), label = TRUE,
labelSize = getOption("labelSize", 6L), dark = FALSE, grid = FALSE,
legend = FALSE, aspectRatio = 1L)
## S4 method for signature 'seurat'
plotFeatureUMAP(object, features, color = NULL,
pointSize = getOption("pointSize", 0.75),
pointAlpha = getOption("pointAlpha", 0.75), label = TRUE,
labelSize = getOption("labelSize", 6L), dark = FALSE, grid = FALSE,
legend = FALSE, aspectRatio = 1L)
|
object |
Object. |
... |
Additional arguments. |
features |
Character vector of features (e.g. gene expression, PC scores, number of genes detected). |
color |
Desired ggplot color scale. Must supply discrete values. When
set to |
pointSize |
Cell point size. |
pointAlpha |
Alpha transparency level. Useful when there many cells in the dataset, and some cells can be masked. |
label |
Overlay a cluster identitiy label on the plot. |
labelSize |
Size of the text label. |
dark |
Plot against a dark background using
|
grid |
Show major grid lines but hide axis lines. |
legend |
Include plot legend. |
aspectRatio |
Aspect ratio. |
ggplot
or list
.
Michael Steinbaugh
Other Clustering Functions: cellTypesPerCluster
,
knownMarkersDetected
,
plotCellTypesPerCluster
,
plotKnownMarkersDetected
,
plotPCElbow
, plotTSNE
,
sanitizeMarkers
, topMarkers
1 2 3 4 5 6 7 8 9 | # seurat ====
object <- seurat_small
features <- c("nUMI", "nGene", "PC1", "PC2")
# t-SNE
plotFeatureTSNE(object, features)
# UMAP
plotFeatureUMAP(object, features)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.