counts.pca(msnset, facs = NULL, do.plot = TRUE, snms = NULL, wait = TRUE)
facs
. When in interactive mode the default is to wait for confirmation
before proceeding to the next plot. When wait
is FALSE and R in
interactive mode, instructs not to wait for confirmation.
prcomp
. prcomp
.
If do.plot
is TRUE, a plot is generated for each factor showing the PC1/PC2 samples map, with samples colored as per factor level. If facs
is NULL
then the factors are taken from pData(msnset)
.
MSnSet
, prcomp
data(msms.dataset)
msnset <- pp.msms.data(msms.dataset)
lst <- counts.pca(msnset)
str(lst)
print(lst$pc.vars[,1:4])
Run the code above in your browser using DataLab