Description Usage Arguments Value Examples
View source: R/plotting_functions.R
Plot reduced dimensions (PCA, TSNE, UMAP)
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"
)
|
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 |
A ggplot geom_point plot of reduced dimension 2D reprensentation
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.