met.plot_PLS_Imp | R Documentation |
met.plot_PLS_Imp
visualizes the features' importance in the PLS-DA model.
met.plot_PLS_Imp(
mSetObj = NA,
imgName,
format = "pdf",
dpi = NULL,
width = NA,
type = "vip",
feat.nm = c("Comp. 1", "Comp. 2"),
feat.num = 15,
color.BW = FALSE,
plot = TRUE,
export = TRUE,
title = FALSE
)
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 |
( |
dpi |
(Numeric) resolution of the image file (if |
width |
(Numeric) width of the the image file in inches (if |
type |
(Character) Indicate the variables of importance type to use, |
feat.nm |
(Character) Indicate the name of the feature. If |
feat.num |
(Numeric) Indicate the number of features to show in the plot. |
color.BW |
(Logical) |
plot |
(Logical, |
export |
(Logical, |
title |
(Logical) |
The input mSet object with added dot plot. The plot can be retrieved from within R via print(mSetObj$imgSet$pls.imp_type_feat.nm.plot)
.
Nicolas T. Wirth mail.nicowirth@gmail.com Technical University of Denmark License: GNU GPL (>= 2)
adapted from PlotPLS.Impg
(https://github.com/xia-lab/MetaboAnalystR).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.