plotTrace | R Documentation |
Plot trace of cumulative OOB (classification) or MSE (regression) error rate by number of trees.
plotTrace(x, pct.correct = TRUE, plot = TRUE)
x |
a |
pct.correct |
display y-axis as percent correctly classified
( |
plot |
display the plot? |
the ggplot2
object is invisibly returned.
Eric Archer eric.archer@noaa.gov
library(randomForest)
data(mtcars)
rf <- randomForest(factor(am) ~ ., mtcars)
plotTrace(rf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.