plot_reduced_dim_scExp: Plot reduced dimensions (PCA, TSNE, UMAP)

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

Plot reduced dimensions (PCA, TSNE, UMAP)

Usage

1
2
3
4
5
6
7
plot_reduced_dim_scExp(
  scExp,
  color_by = "sample_id",
  reduced_dim = c("PCA", "TSNE", "UMAP"),
  select_x = "Component_1",
  select_y = "Component_2"
)

Arguments

scExp

A SingleCellExperiment Object

color_by

Feature used for coloration

reduced_dim

Reduced Dimension used for plotting

select_x

Which variable to select for x axis

select_y

Which variable to select for y axis

Value

A ggplot geom_point plot of reduced dimension 2D reprensentation

Examples

1
2
3
4
data("scExp")
plot_reduced_dim_scExp(scExp, color_by = "sample_id")
plot_reduced_dim_scExp(scExp, color_by = "total_counts")
plot_reduced_dim_scExp(scExp, reduced_dim = "UMAP")

ChromSCape documentation built on Nov. 8, 2020, 6:57 p.m.