Learn R Programming

SuperCell (version 1.0)

supercell_DimPlot: Plot metacell 2D plot (PCA, UMAP, tSNE etc)

Description

Plots 2d representation of metacells

Usage

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
)

Value

ggplot

Arguments

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 SC)

dim.1

dimension to plot on X-axis

dim.2

dimension to plot on Y-axis

color.use

colros to use for groups, if NULL, an automatic palette of colors will be applied

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)