rfPermute (version 2.5.2)

plotPredictedProbs: Plot Predicted Probabilities

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 strongly they are classified.

Usage

plotPredictedProbs(x, bins = 30, plot = TRUE)

Value

the ggplot2 object is invisibly returned.

Arguments

x

a rfPermute or randomForest model object.

bins

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

plot

display the plot?

Author

Eric Archer eric.archer@noaa.gov

Examples

Run this code
library(randomForest)
data(mtcars)

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

Run the code above in your browser using DataLab