plotMDS {bingat}R Documentation

Plot MDS

Description

This function plots all the data on an MDS plot.

Usage

	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

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

[Package bingat version 1.3 Index]