MDSplot {randomForest} | R Documentation |
Plot the scaling coordinates of the proximity matrix from randomForest.
MDSplot(rf, fac, k=2, ...)
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. |
The output of cmdscale
on 1 - rf$proximity
is
returned invisibly.
Robert Gentleman, with slight modifications by Andy Liaw
set.seed(1) data(iris) iris.rf <- randomForest(Species ~ ., iris, proximity=TRUE, keep.forest=FALSE) MDSplot(iris.rf, iris$Species)