plot_group: plot PCA, TSNE

Description Usage Arguments Value Examples

Description

plot PCA, TSNE

Usage

1
2
3
plot_PCA(sce, shape = NULL, color = NULL)

plot_TSNE(sce, shape = NULL, color = NULL)

Arguments

sce

SingleCellExperiment object.

shape,

color string. Specify a column in col_data of as_SingleCellExperiment() to shape/color by.

Value

ggplot object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as_SingleCellExperiment(sim_mat) %>% plot_PCA()

as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA()
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(shape = 'label')
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(color = 'label')
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(shape = 'label', color = 'label')

as_SingleCellExperiment(sim_mat) %>% plot_PCA()

as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA()
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(shape = 'label')
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(color = 'label')
as_SingleCellExperiment(sim_mat, sim_sample_class) %>% plot_PCA(shape = 'label', color = 'label')

dongzhuoer/rexseek documentation built on Dec. 16, 2019, 3:19 a.m.