met.plot_PLS2DLoading | R Documentation |
met.plot_PLS2DLoading
visualizes which features are responsible for the patterns seen among the samples in partial least squares-discriminant analysis.
met.plot_PLS2DLoading(
mSetObj = NA,
imgName = "PLSDA_2DLoadings",
format = "pdf",
dpi = NULL,
subtitle = FALSE,
width = NA,
inx1 = 1,
inx2 = 2,
plot = TRUE,
export = TRUE
)
mSetObj |
Input name of the created mSet object,
Data container after partial least squares-discriminant analysis ( |
imgName |
(Character) Enter a name for the image file (if |
format |
(Character, |
dpi |
(Numeric) resolution of the image file (if |
subtitle |
(Logical, |
width |
(Numeric) width of the the image file in inches (if |
inx1 |
Numeric, indicate the number of the principal component for the x-axis of the loading plot. |
inx2 |
Numeric, indicate the number of the principal component for the y-axis of the loading plot. |
plot |
(Logical, |
export |
(Logical, |
The input mSet object with added scatter plot. The plot can be retrieved from within R via print(mSetObj$imgSet$pls.loading_PCx_PCy.plot)
.
Nicolas T. Wirth mail.nicowirth@gmail.com Technical University of Denmark License: GNU GPL (>= 2)
adapted from PlotPLSLoading
(https://github.com/xia-lab/MetaboAnalystR).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.