rfPermute (version 2.1.81)

plotConfMat: Plot Confusion Matrix

Description

Plot confusion matrix heatmap.

Usage

plotConfMat(rf, title = NULL, plot = TRUE)

Arguments

rf

an object inheriting from randomForest.

title

a title for the plot.

plot

display the plot?

Value

the ggplot2 object is invisibly returned.

Examples

Run this code
# NOT RUN {
data(mtcars)

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

# }

Run the code above in your browser using DataLab