Description Usage Arguments Details Value See Also
Principal component analysis (PCA) plot with class labels.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
emat |
numeric matrix with row features and sample columns. |
class |
a factor vector specifying sample classes
|
keepN |
a logical or numeric vector specifying which samples to keep. |
nGenes |
an integer specifying number of features to used for PCA. |
normMethod |
a character, passed to |
dim |
a numeric vector of length 2, specifying which principal components to plot. |
labelSamp |
a logical indicating whether points or
|
legend |
a character specifying legend placement (e.g. "topleft", "bottomright"). |
classConfusion |
a factor vector with same length and levels as
|
classCol |
a character vector of hexcolors with
|
... |
arguments to be passed to |
plotPCA
provides a PCA with points colored
according to class labels. If classConfusion
is specified, samples
where class != classConfusion
are highlighted.
a labeled PCA plot and list of class prcomp
passed
from prcomp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.