Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotInbag

Plot inbag distribution


Description

Plot distribution of sample inbag rates

Usage

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)

Examples

data(mtcars)

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

rfPermute

Estimate Permutation p-Values for Random Forest Importance Metrics

v2.1.81
GPL (>= 2)
Authors
Eric Archer [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.