powered by
Plot distribution of sample inbag rates
plotInbag(rf, sampsize = NULL, bins = 20, plot = TRUE)
an object inheriting from randomForest.
randomForest
optional vector of sample sizes used in rf model.
rf
number of bins in histogram.
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.
ggplot2
# NOT RUN { data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) plotInbag(rf) # }
Run the code above in your browser using DataLab