met.plot_PCAScree | R Documentation |
met.plot_PCAScree
visualizes the proportion of variance explained for each principal component.
met.plot_PCAScree(
mSetObj = NA,
imgName = "PCA_ScreePlot",
format = "pdf",
dpi = NULL,
width = NA,
scree.num,
plot = TRUE,
export = FALSE
)
mSetObj |
Input name of the created mSet object.
Data container after principal component analysis ( |
imgName |
(Character) Enter a name for the image file (if |
format |
(Character, |
dpi |
(Numeric) resolution of the image file (if |
width |
(Numeric) width of the the image file in inches (if |
scree.num |
Numeric, input a number to indicate the number of principal components to display in the scree plot. |
plot |
(Logical, |
export |
(Logical, |
The input mSet object with added line plot. The plot can be retrieved from within R via print(mSetObj$imgSet$pca.scree.plot)
.
Nicolas T. Wirth mail.nicowirth@gmail.com Technical University of Denmark License: GNU GPL (>= 2)
adapted from PlotPCAScree
(https://github.com/xia-lab/MetaboAnalystR).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.