This function plots the confusion matrix for a classification model.
plot_twoclass_conf_mat(dat)
dat
The predictions data frame in the organize_data() result. Following variables are required: .outcome, .pred, .color, and .hover.
organize_data()
.outcome
.pred
.color
.hover
A plotly::ggplotly() object.
plotly::ggplotly()