plot.mds: Multi-dimensional Scaling (MDS) Plot

Description Usage Arguments Details Examples

View source: R/Exploring.R

Description

This function plots the scaling coordinates of the proximity matrix from random forest.

Usage

1
2
## S3 method for class 'mds'
plot(mds_obj, xrange, yrange)

Arguments

mds_obj

an object of class mds

xrange

a vector of two elements indicating the interval along the x-axis in which we want to display the names of the samples

yrange

a vector of two elements indicating the interval along the y-axis in which we want to display the names of the samples

Details

From the trained model we can get the dissimilarity matrix ** 1 - prox(i,j) ** The entries of this matrix can be seen as squared distances in a Euclidean high dimensional space. After having calculated scaling coordinates, we can project the data onto a lower dimensional space, preserving (as much as possible) the distances between the orginal points. This plot can be useful for discovering patterns in data.

Examples

1
2
3
4
## data(cachexiaData)
## params = list(ntree = 1000, mtry = round(sqrt(ncol(cachexiaData) -2)), seed = 1234)
## mds_obj <- mds(cachexiaData, opt = params)
## plot.mds(mds_obj = mds_obj)

pjpalla/RFmarkerDetector documentation built on May 25, 2019, 8:19 a.m.