Learn R Programming

provenance (version 1.3)

MDS: Multidimensional Scaling

Description

Performs classical or nonmetric Multidimensional Scaling analysis

Multidimensional Scaling of compositional data

Multidimensional Scaling of distributional data

Multidimensional Scaling of a dissimilarity matrix

Usage

MDS(x, ...)

## S3 method for class 'compositional': MDS(x, classical = FALSE, ...)

## S3 method for class 'distributional': MDS(x, classical = FALSE, ...)

## S3 method for class 'diss': MDS(x, classical = FALSE, ...)

Arguments

x
an object of class distributional, compositional or diss
...
optional arguments to be passed onto diss (if x is of class compositional or distributional) or onto cmdscale or isoMDS (if x is of class dist).
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
data(Namib)
plot(MDS(Namib$Major,classical=TRUE))

Run the code above in your browser using DataLab