powered by
plot the PCA for multiple samples
plotpca( data, lv = NULL, index = NULL, center = TRUE, scale = TRUE, xrange = NULL, yrange = NULL, pch = NULL, ... )
if xrange and yrange are not NULL, return file name of all selected samples on 2D score plot
data row as peaks and column as samples
group information
index for selected peaks
parameters for PCA
parameters for scale
x axis range for return samples, default NULL
y axis range for return samples, default NULL
default pch would be the first character of group information or samples name
other parameters for `plot` function
data(list) plotpca(list$data, lv = as.character(list$group$sample_group))
Run the code above in your browser using DataLab