met.plot_PLS.Permutation: Plot PLS-DA classification performance using different...

met.plot_PLS.PermutationR Documentation

Plot PLS-DA classification performance using different components, permutation

Description

Permutation test is a technique for testing a hypothesis of no effect, when the distribution of the test statistic is unknown. The objective of this test is to confirm that the initial model is superior to other models obtained by permuting the class labels and randomly assigning them to different individuals or, in other words, to answer the question "what is the model's performance if the groups are formed randomly".

Usage

met.plot_PLS.Permutation(
  mSetObj = NA,
  imgName = "PLSDA-Permutation",
  format = "pdf",
  dpi = NULL,
  width = NA,
  plot = TRUE,
  export = TRUE,
  title = FALSE
)

Arguments

mSetObj

Input name of the created mSet object. Data container after partial least squares-discriminant analysis (met.PLSR.Anal and met.PLSDA.CV).

imgName

(Character) Enter a name for the image file (if export = TRUE).

format

(Character, "png" or "pdf") image file format (if export = TRUE).

dpi

(Numeric) resolution of the image file (if export = TRUE). If NULL, the resolution will be chosen automatically based on the chosen file format (300 dpi for PNG, 72 dpi for PDF)

width

(Numeric) width of the the image file in inches (if export = TRUE).

plot

(Logical, TRUE or FALSE) Shall the plot be returned in the RStudio 'Plots' pane?

export

(Logical, TRUE or FALSE) Shall the plot be exported as PDF or PNG file?

title

(Logical) TRUE to add a title with the used normalization, transformation, and scaling method, or FALSE to not add any title.

Value

The input mSet object with added permutation test plot. The plot can be retrieved from within R via print(mSetObj$imgSet$pls.permut.plot).

Author(s)

Nicolas T. Wirth mail.nicowirth@gmail.com Technical University of Denmark License: GNU GPL (>= 2)

References

adapted from PlotPLS.Permutation (https://github.com/xia-lab/MetaboAnalystR).


NicWir/VisomX documentation built on Dec. 8, 2024, 1:27 a.m.