plotTrace {rfPermute} | R Documentation |
Plot Trace
Description
Plot trace of cumulative OOB (classification) or MSE (regression) error rate by number of trees.
Usage
plotTrace(x, pct.correct = TRUE, plot = TRUE)
Arguments
x |
a |
pct.correct |
display y-axis as percent correctly classified
( |
plot |
display the plot? |
Value
the ggplot2
object is invisibly returned.
Author(s)
Eric Archer eric.archer@noaa.gov
Examples
library(randomForest)
data(mtcars)
rf <- randomForest(factor(am) ~ ., mtcars)
plotTrace(rf)
[Package rfPermute version 2.5.2 Index]