powered by
perform PCA from xcms object
viewPCA( dat, Group = NULL, centering = T, scaling = "none", x = 1, y = 2, size = 1.5, exclude = NULL, scale_group = NULL, scale_factor = 1, interactive = T, ... )
sample ion intensity matrix, row sample, column feature.
sample group information
centering, default = TRUE
scaling method, default is scaling = "none". You can choose "auto" or "pareto"
PCA X axis, default is PC1
PCA Y axis, defult is PC2
dot size
exclude some classes of samples
select groups needs to be scaled.
the scale factor, default = 1.
should interactive figure be plotted? default = TRUE. If you want to save the result in high resolution, use non interative plot.
other parameters
Yonghui Dong
dat <- matrix(runif(2*300), ncol = 2, nrow = 300) Group <- rep_len(LETTERS[1:3], 300) out <- viewPCA(dat, Group = Group)
Run the code above in your browser using DataLab