Learn R Programming

enviGCMS (version 0.6.6)

plotpca: plot the PCA for multiple samples

Description

plot the PCA for multiple samples

Usage

plotpca(
  data,
  lv = NULL,
  index = NULL,
  center = T,
  scale = T,
  xrange = NULL,
  yrange = NULL,
  pch = NULL,
  ...
)

Value

if xrange and yrange are not NULL, return file name of all selected samples on 2D score plot

Arguments

data

mzrt profile with row peaks and column samples

lv

group information

index

index for selected peaks

center

parameters for PCA

scale

parameters for scale

xrange

x axis range for return samples, default NULL

yrange

y axis range for return samples, default NULL

pch

deault pch would be the first charactor of group information or samples name

...

other parameters for `plot` function

Examples

Run this code
data(list)
plotpca(list$data, lv = as.character(list$group$sample_group))

Run the code above in your browser using DataLab