View source: R/metabolomics_plots.R
met.plot_PLSImpScatter | R Documentation |
met.plot_PLSImpScatter
visualizes the features' importance in the PLS-DA model by comparing VIP scores and coefficients.
met.plot_PLSImpScatter(
mSetObj,
imgName = "PLS_ImpScatter",
format = "png",
dpi = 300,
width = NA,
feat.nm = "coef.mean",
vip.nm = c("Comp. 1", "Comp. 2"),
plot = TRUE,
export = FALSE,
vip.thresh = 1,
show.title = FALSE,
title
)
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 |
feat.nm |
(Character) Indicate the name of the feature. Choose |
vip.nm |
(Character or a character vector) Choose |
plot |
(Logical, |
export |
(Logical, |
vip.thresh |
(Numeric) Draw a vertical line in the plot indicating a chosen VIP relevance threshold (the default is |
show.title |
(Logical) |
title |
(Character) Define the title if |
The input mSet object with added scatter plot. The plot can be retrieved from within R via print(mSetObj$imgSet$pls.ImpScatter_plot_feat.nm_.plot)
.
Nicolas T. Wirth mail.nicowirth@gmail.com Technical University of Denmark License: GNU GPL (>= 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.