rfPermute (version 2.1.81)

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 well they ar classified.

Usage

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.

Examples

Run this code
# NOT RUN {
data(mtcars)

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

# }

Run the code above in your browser using DataLab