Plot Random Forest Proximity Scores
Create a plot of Random Forest proximity scores using multi-dimensional scaling.
proximityPlot( rf, dim.x = 1, dim.y = 2, legend.loc = c("top", "bottom", "left", "right"), point.size = 2, circle.size = 8, circle.border = 1, hull.alpha = 0.3, plot = TRUE )
rf |
A |
dim.x, dim.y |
Numeric values giving x and y dimensions to plot from multidimensional scaling of proximity scores. |
legend.loc |
Character keyword specifying location of legend.
Can be |
point.size |
Size of central points. |
circle.size |
Size of circles around correctly classified points as argument to 'cex'. Set to NULL for no circles. |
circle.border |
Width of circle border. |
hull.alpha |
value giving alpha transparency level for convex hull shading.
Setting to |
plot |
logical determining whether or not to show plot. |
Produces a scatter plot of proximity scores for dim.x
and
dim.y
dimensions from a multidimensional scale (MDS) conversion of
proximity scores from a randomForest
object. For classification
models, a convex hull is drawn around the a-priori classes with points
colored according to original (inner) and predicted (outer) class.
a list with prox.cmd
: the MDS scores of the selected dimensions,
and g
the ggplot
object.
Eric Archer eric.archer@noaa.gov
data(symb.metab) rf <- randomForest(type ~ ., symb.metab, proximity = TRUE) proximityPlot(rf)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.