plotInbag: Plot inbag distribution

Description Usage Arguments Value Author(s) Examples

Description

Plot distribution of sample inbag rates

Usage

1
plotInbag(rf, sampsize = NULL, bins = 20, plot = TRUE)

Arguments

rf

an object inheriting from randomForest.

sampsize

optional vector of sample sizes used in rf model.

bins

number of bins in histogram.

plot

display the plot?

Value

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.

Author(s)

Eric Archer [email protected]

Examples

1
2
3
4
data(mtcars)

rf <- randomForest(factor(am) ~ ., mtcars)
plotInbag(rf)

rfPermute documentation built on May 2, 2019, 12:13 p.m.