Learn R Programming

provenance (version 0.2)

getMDS: Multidimensional Scaling

Description

Performs classical or nonmetric Multidimensional Scaling analysis

Usage

getMDS(x, ...)

## S3 method for class 'HMdata': getMDS(x, classical = FALSE, ...)

## S3 method for class 'DZdata': getMDS(x, classical = FALSE, ...)

## S3 method for class 'dist': getMDS(x, classical = FALSE, ...)

Arguments

x
an object of class DZdata, HMdata or dist
...
optional arguments to be passed onto cmdscale or isoMDS
classical
boolean flag indicating whether classical (TRUE) or nonmetric (FALSE) MDS should be used

Value

  • an object of class MDS, i.e. a list containing the following items:

    points: a two column vector of the fitted configuration

    classical: a boolean flag indicating whether the MDS configuration was obtained by classical (TRUE) or nonmetric (FALSE) MDS.

    diss: the dissimilarity matrix used for the MDS analysis

    stress: (only if classical=TRUE) the final stress achieved (in percent)

Examples

Run this code
fname <- system.file("Major.csv",package="provenance")
Major <- read.HMdata(fname)
plot(getMDS(Major,classical=TRUE))

Run the code above in your browser using DataLab