Description Usage Arguments Value Author(s) Examples
This function plots all the data on an MDS plot.
1 2 |
dataList |
A list where each element is a data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge). |
groups |
Deprecated. Each data set should be an element in dataList. |
estGstar |
When TRUE, the g star for every group is calculated and plotted. |
paired |
When TRUE, line segments between pairs will be drawn. |
returnCoords |
When TRUE, the MDS x-y coordinates will be returned. |
... |
Arguments to be passed to the plot method. |
data |
Deprecated. Replaced with dataList for clarity. |
An MDS plot and if returnCoords is TRUE, a 2 column data frame containing the x-y coordinates of the data points is also returned.
Berkley Shands, Elena Deych, William D. Shannon
1 2 3 4 5 6 7 8 9 10 | data(braingraphs)
### Break our data into two groups
dataList <- list(braingraphs[,1:19], braingraphs[,20:38])
### Basic plot
plotMDS(dataList, main="MDS Plot")
### Paired Plot
plotMDS(dataList, paired=TRUE, main="Paired MDS Plot")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.