powered by
PCA scree plot with the proportion and cumulative variance of the PCs.
pca_screeplot(pca.result, num.pcs = NULL, cex.leg = 0.8, leg.pos = "right", lab.text = c("individual percent", "cumulative percent"), fill.col = c("blue", "red"), ylab = "Percentage", xlab = "Principal components", ...)
prcomp object with the PCA results.
number of principal components.
cex value of legend.
legend position.
legend's labels.
color of the legend's boxes.
y-axis label.
x-axis label
additional parameters to matplot.
# NOT RUN { ## Example of a scree plot library(specmine.datasets) data(cachexia) pca.result = pca_analysis_dataset(cachexia) pca_screeplot(pca.result) # }
Run the code above in your browser using DataLab