Plot inbag distribution
Plot distribution of sample inbag rates
plotInbag(rf, sampsize = NULL, bins = 20, plot = TRUE)
rf |
an object inheriting from |
sampsize |
optional vector of sample sizes used in |
bins |
number of bins in histogram. |
plot |
display the plot? |
the ggplot2 object is invisibly returned. The red vertical
lines mark the expected values for the classes in the model based on their
frequency and sample sizes.
Eric Archer eric.archer@noaa.gov
data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotInbag(rf)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.