PlotSPLSDA.Classification: Create SPLS-DA classification plot

View source: R/stats_chemometrics.R

PlotSPLSDA.ClassificationR Documentation

Create SPLS-DA classification plot

Description

Sparse PLS-DA (from mixOmics) plot of classification performance using different components

Usage

PlotSPLSDA.Classification(
  mSetObj = NA,
  imgName,
  format = "png",
  dpi = 72,
  width = NA
)

Arguments

mSetObj

Input name of the created mSet Object

imgName

Input a name for the plot

format

Select the image format, "png", or "pdf".

dpi

Input the dpi. If the image format is "pdf", users need not define the dpi. For "png" images, the default dpi is 72. It is suggested that for high-resolution images, select a dpi of 300.

width

Input the width, there are 2 default widths, the first, width = NULL, is 10.5. The second default is width = 0, where the width is 7.2. Otherwise users can input their own width.

Author(s)

Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)


xia-lab/MetaboAnalystR documentation built on April 20, 2024, 8:13 p.m.