View source: R/principalcomponentsanalysis.R
ScreePlot | R Documentation |
ScreePlot
Plot the eigenvalues from an existing principal component or factor analysis or plot the eigenvalues from the correlation or covariance matrix of a data frame.
ScreePlot(
x,
weights = NULL,
subset = NULL,
missing = "Exclude cases with missing data",
use.correlation = TRUE,
trim.padding = FALSE
)
x |
Either a data frame, a numeric vector of eigenvalues, or the
eigenvalues from an analysis of class |
weights |
A numeric vector containing the weight for each case in data. |
subset |
A logical vector which describes the subset of |
missing |
A string specifiying what to do when the |
use.correlation |
A logical value specifying whether to use the
correlation matrix ( |
trim.padding |
Logical; whether to remove extra padding around the htmlwidget.
By default this is set to |
An HTML widget object from plotly containing the Scree Plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.