Learn R Programming

enviGCMS (version 0.5.0)

plotpca: plot the PCA of list

Description

plot the PCA of list

Usage

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

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

...

other parameters for `plot` function

Examples

Run this code
# NOT RUN {
library(faahKO)
cdfpath <- system.file('cdf', package = 'faahKO')
list <- getmr(cdfpath, pmethod = ' ')
data <- list$data
lv <- as.character(list$group$class)
plotpca(data, lv)
# }

Run the code above in your browser using DataLab