View source: R/pcaOtherPlotting.R
plotScreePCA | R Documentation |
Plot the PCA scree plot.
plotScreePCA(
spe_object,
dims = ncol(spe_object),
precomputed = NULL,
assay = 1,
bar_color = "black",
bar_fill = "royalblue",
bar_width = 0.8,
point_col = "tomato3",
line_col = "tomato3",
point_size = 2
)
spe_object |
A SpatialExperiment object. |
dims |
The top n dimensions to be plotted |
precomputed |
a dimensional reduction results from |
assay |
a numeric or character, specifying the assay to use (for
|
bar_color |
Color for bar. |
bar_fill |
Fill for bar. |
bar_width |
Bar width. |
point_col |
Color for point. |
line_col |
Color for line. |
point_size |
Point size. |
A ggplot object.
data("dkd_spe_subset")
plotScreePCA(dkd_spe_subset, dims = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.