plotPredictedProbs: Plot Predicted Probabilities

Description Usage Arguments Value Author(s) Examples

Description

Plot histogram of assignment probabilities to predicted class. This is used for determining if the model differentiates between correctly and incorrectly classified samples in terms of how well they ar classified.

Usage

1
plotPredictedProbs(rf, bins = 30, plot = TRUE)

Arguments

rf

an object inheriting from randomForest.

bins

number of bins in histogram. Defaults to number of samples / 5.

plot

display the plot?

Value

the ggplot2 object is invisibly returned.

Author(s)

Eric Archer [email protected]

Examples

1
2
3
4
data(mtcars)

rf <- randomForest(factor(am) ~ ., mtcars)
plotPredictedProbs(rf, bins = 20)

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