mdsPlot | R Documentation |
Multi-dimensional scaling (MDS) plots showing a 2-d projection of distances between samples.
mdsPlot(dat, numPositions = 1000, sampNames = NULL, sampGroups = NULL, xlim, ylim,
pch = 1, pal = brewer.pal(8, "Dark2"), legendPos = "bottomleft",
legendNCol, main = NULL)
dat |
An |
numPositions |
Use the |
sampNames |
Optional sample names. See details. |
sampGroups |
Optional sample group labels. See details. |
xlim |
x-axis limits. |
ylim |
y-axis limits. |
pch |
Point type. See |
pal |
Color palette. |
legendPos |
The legend position. See
|
legendNCol |
The number of columns in the legend. See
|
main |
Plot title. |
Euclidean distance is calculated between samples using the
numPositions
most variable CpG positions. These distances are then
projected into a 2-d plane using classical multidimensional scaling
transformation.
No return value. Plots are produced as a side-effect.
Martin Aryee aryee@jhu.edu.
I Borg, P Groenen. Modern Multidimensional Scaling: theory and applications (2nd ed.) New York: Springer-Verlag (2005) pp. 207-212. ISBN 0387948457.
http://en.wikipedia.org/wiki/Multidimensional_scaling
qcReport
, controlStripPlot
,
densityPlot
, densityBeanPlot
,
par
, legend
if (require(minfiData)) {
names <- pData(MsetEx)$Sample_Name
groups <- pData(MsetEx)$Sample_Group
mdsPlot(MsetEx, sampNames=names, sampGroups=groups)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.