randomForest (version 4.3-2)

MDSplot: Multi-dimensional Scaling Plot of Proximity matrix from randomForest

Description

Plot the scaling coordinates of the proximity matrix from randomForest.

Usage

MDSplot(rf, fac, k=2, ...)

Arguments

rf
an object of class randomForest that contains the proximity component.
fac
a factor that was used as response to train rf.
k
number of dimensions for the scaling coordinates.
...
other graphical parameters.

Value

  • The output of cmdscale on 1 - rf$proximity is returned invisibly.

Note

If k > 2, pairs is used to produce the scatterplot matrix of the coordinates.

See Also

randomForest

Examples

Run this code
set.seed(1)
data(iris)
iris.rf <- randomForest(Species ~ ., iris, proximity=TRUE,
                        keep.forest=FALSE)
MDSplot(iris.rf, iris$Species)

Run the code above in your browser using DataCamp Workspace