powered by
Plot trace of cumulative OOB (classification) or MSE (regression) error rate by number of trees.
plotTrace(x, pct.correct = TRUE, plot = TRUE)
the ggplot2 object is invisibly returned.
ggplot2
a rfPermute or randomForest model object.
rfPermute
randomForest
display y-axis as percent correctly classified (TRUE) or OOB error rate (FALSE).
TRUE
FALSE
display the plot?
Eric Archer eric.archer@noaa.gov
library(randomForest) data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotTrace(rf)
Run the code above in your browser using DataLab