visGroup | R Documentation |
Plot group label in a reduced dimensional plot.
visGroup(sce, group, dim_red = "TSNE")
sce |
A |
group |
Character. Name of group/batch variable.
Needs to be one of |
dim_red |
Character. Name of embeddings to use as subspace for plotting. Default is "TSNE". |
Plots a reduced dimension plot colored by group parameter.
The dimesion reduction embedding can be specified, but only tsne embeddings
will automatically be computed by runTSNE
. Embeddings from data
integration methods (e.g. mnn.correct) can be used as long as they are
specified in reducedDimNames(sce)
.
a ggplot
object.
visOverview
, visMetric
Other visualize functions:
visCluster()
library(SingleCellExperiment)
sim_list <- readRDS(system.file("extdata/sim50.rds", package = "CellMixS"))
sce <- sim_list[[1]][, c(1:50, 300:350)]
visGroup(sce, "batch")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.