PlotPLS2DScore: Plot PLS score plot

View source: R/stats_chemometrics.R

PlotPLS2DScoreR Documentation

Plot PLS score plot

Description

Plot PLS score plot

Usage

PlotPLS2DScore(
  mSetObj = NA,
  imgName,
  format = "png",
  dpi = 72,
  width = NA,
  inx1,
  inx2,
  reg = 0.95,
  show = 1,
  grey.scale = 0,
  cex.opt = "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.

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.

reg

Numeric, default is 0.95

show

Show labels, 1 or 0

grey.scale

Numeric, use a grey scale (0) or not (1)

Author(s)

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


xia-lab/MetaboAnalystR documentation built on May 6, 2024, 2:41 a.m.