plotPCA(x, which = "UnitName", transfo = log2, method = "none", groups = NULL, screeplot = FALSE, squarepca = FALSE, pcs = c(1,2), add.labels = FALSE, add.legend = FALSE, col = NULL, names = "namepart", as.list = FALSE, dev = "screen", outfile = "PCAPlot", w = 540, h = 540, ...)
ExprTreeSet
.validData
.vector
listing the group names in order of the names
.screeplot
instead of a PCA plot.vector
of length two indicating which principal components to plot.groups
are supplied then a legend indicating the groups
will be drawn. Optionally, a character indicating the position of the legend, default is topleft.list
will be returned in addition to the plot.plot
.plotPCA
produces a PCA plot of the first two principle components for slot
data
or the correlations between the columns of slot data
, respectively, of an
object of class ExprTreeSet
. For method="none"
function [stats]prcomp
will be applied to slot data
directly,
otherwise prcomp
will be applied to (1 - cor(data))
with the respective method
.
For screeplot=TRUE
a screeplot
will be plotted instead of a PCA plot.
For names=NULL
full column names of slot data
will be displayed while for
names="namepart"
column names will be displayed without name extension. If names
is a vector of column names, only these columns will displayed as mvaplot.
pcaplot