Description Usage Arguments Details Value Examples
Multi-dimensional scaling (MDS) plot with class labels. Wrapper
for plotMDS
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
emat |
a numeric matrix with row features and sample columns. |
class |
a factor vector specifying subtypes compared
|
keepN |
a logical or numeric vector specifying which samples to keep (defaults to all). |
nGenes |
an integer specifying number of features to used for MDS |
normMethod |
a character, passed to |
dim |
a numeric vector of length 2, specifying which principal components to plot. |
labelSamp |
a logical indicating whether points (FALSE) or colnames(emat) are plotted. |
labelCenters |
a logical indicating whether class centers should be labeled. |
classConfusion |
a factor vector with same length and levels as
|
legend |
a character specifying legend placement (e.g. "topleft", "bottomright"). |
classCol |
a character vector of hexcolors with
|
... |
arguments to be passed to |
plotMDS
provides a MDS plot of emat with points colored
according to class labels. If classConfusion is specified, samples
where class != classConfusion
are highlighted.
A labeled MDS plot
1 2 3 4 | # sample subset for reduced run-time
subset <- 25:50
subMDS(emat=crcTCGAsubset, class=crcTCGAsubset$CMS,
keepN=subset, normMethod="quantile")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.