scree.plot | R Documentation |
Plot the proportion of variance captured by each component axis of a gm.prcomp object
scree.plot( x, npcs = NULL, threshold = 0.05, threshold.color = "darkred", method = "percent", type = "barplot", ... )
x |
An object of class |
npcs |
The number of components to be plotted. |
threshold |
An optional threshold to display. Default is 0.05. |
threshold.color |
Color for the threshold line. |
method |
A string indicating how to represent the proportion of variance.
Allowable values are |
type |
A string indicating the type of plot. Options are |
Dave Angelini david.r.angelini@gmail.com [aut, cre]
Geomorph: Software for geometric morphometric analyses. R package version 3.2.1. D.C. Adams and M.L. Collyer and A. Kaliontzopoulou. 2020. (Link)
library(geomorph) data(plethodon) # GPA Y.gpa <- gpagen(plethodon$land) # Create a gm.prcomp object PCA <- gm.prcomp(Y.gpa$coords) # scree plot scree.plot(PCA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.