View source: R/plotting_functions.R
plot_correlation_PCA_scExp | R Documentation |
Plotting correlation of PCs with a variable of interest
plot_correlation_PCA_scExp(
scExp,
correlation_var = "total_counts",
color_by = NULL,
topPC = 10
)
scExp |
A SingleCellExperiment Object |
correlation_var |
A string specifying with which numeric variable from colData of scExp to calculate and plot the correlation of each PC with. ('total_counts') |
color_by |
A string specifying with which categorical variable to color the plot. ('NULL') |
topPC |
An integer specifying the number of PCs to plot correlation with 10 |
A ggplot histogram representing the distribution of count per cell
data("scExp")
plot_correlation_PCA_scExp(scExp, topPC = 25)
plot_correlation_PCA_scExp(scExp, color_by = "cell_cluster")
plot_correlation_PCA_scExp(scExp, color_by = "sample_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.