PlotPCA2DScore: Create 2D PCA score plot

Description Usage Arguments Author(s)

View source: R/stats_chemometrics.R

Description

Rotate PCA analysis

Usage

1
PlotPCA2DScore(mSetObj=NA, imgName, format="png", dpi=72, width=NA, pcx, pcy, reg = 0.95, show=1, grey.scale = 0)

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.

style

Numeric, the ratio style of the figure (width/height), defalt is 1, 1:1. 2 means 4:3, while 3 means 16:9.

pcx

Specify the principal component on the x-axis

pcy

Specify the principal component on the y-axis

reg

Numeric, input a number between 0 and 1, 0.95 will display the 95 percent confidence regions, and 0 will not.

show

Display sample names, 1 = show names, 0 = do not show names.

grey.scale

Use grey-scale colors, 1 = grey-scale, 0 = not grey-scale.

Author(s)

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


xia-lab/MetaboAnalystR3.0 documentation built on May 6, 2020, 11:03 p.m.