View source: R/supercell_plot.R
supercell_DimPlot | R Documentation |
Plots 2d representation of metacells
supercell_DimPlot(
SC,
groups = NULL,
dim.name = "PCA",
dim.1 = 1,
dim.2 = 2,
color.use = NULL,
asp = 1,
alpha = 0.7,
title = NULL,
do.sqtr.rescale = FALSE
)
SC |
SuperCell computed metacell object (the output of SCimplify) |
groups |
an assigment of metacells to any group (for ploting in different colors) |
dim.name |
name of the dimensionality reduction to plot (must be a field in |
dim.1 |
dimension to plot on X-axis |
dim.2 |
dimension to plot on Y-axis |
color.use |
colros to use for groups, if |
asp |
aspect ratio |
alpha |
a rotation of the layout (either provided or computed) |
title |
a title of a plot |
do.sqtr.rescale |
whether to sqrt-scale node size (to balance plot if some metacells are large and covers smaller metacells) |
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.