plotMDS: Plot MDS

Description Usage Arguments Value Author(s) Examples

View source: R/plotMDS.R

Description

This function plots all the data on an MDS plot.

Usage

1
2
	plotMDS(dataList, groups, estGstar = TRUE, paired = FALSE, 
		returnCoords = FALSE, ..., data=NULL)

Arguments

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.

Value

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.

Author(s)

Berkley Shands, Elena Deych, William D. Shannon

Examples

 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")

bingat documentation built on May 1, 2019, 9:11 p.m.