Description Usage Arguments Value Examples
Generates a scree plot of PCs generated by
runPCA
.
The principal components (PCs) are sorted from largest percent variance to
the smallest percent variance. This plot is for determining the optimal
number of PCs to retain for further analysis.
1 | plotPCAVariance(object, n = 50)
|
object |
An |
n |
Number of PCs to view on the plot. |
A ggplot2 glob that contains a scatter qplot.
1 2 3 4 5 | # Load EMSet
em_set <- ascend::analyzed_set
# Plot PCA variance
pca_variance_plot <- plotPCAVariance(em_set, n = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.