plotDimRedSCAtlasExperiment | R Documentation |
This function plots dimensionality reduction (PCA, t-sne, UMAP) of a SingleCellExperiment object representing a Single-Cell Expression Atlas experiment.
plotDimRedSCAtlasExperiment( sceObject, dimRed, colorby )
sceObject |
Single-cell experiment object, representing a Single-Cell Expression Atlas experiment, obtained with the function |
dimRed |
Dimensionality reduction to plot. Options are: "X_pca", "X_tsne_perplexity_10", "X_umap_neighbors_20", etc. |
colorby |
Column name in |
A ggplot2 geom point visualisation, which can be further customised by the user.
# Example of plotting PCA dimensionality reduction colored by age
# Download the experiment summary for E-ENAD-19
enad19 <- getAtlasSCExperiment( "E-ENAD-19" )
plotDimRedSCAtlasExperiment(enad19, dimRed = "X_pca", colorby = "age" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.