Plots an extended confusion matrix using mplot3.img
mplot3.confbin(object, main = NULL, xlab = "True",
ylab = "Estimated", mod.name = NULL, mar = c(4, 5, 4, 3),
dim.lab = 1, dim.in = 4, dim.out = 2, font.in = 2,
font.out = 2, cex.in = 1.2, cex.lab = 1.2, cex.lab2 = 1,
cex.out = 1, col.text.out = "white", col.bg.out = "gray50",
theme = "light", mid.color = NULL, hi.color.pos = ucsfCol$teal,
hi.color.neg = ucsfCol$purple, par.reset = TRUE, pdf.width = 8.7,
pdf.height = 8.7, filename = NULL, ...)
Either 1. a classification rtMod
, b. a caret::confusionMatrix
object, or c. a matrix /
data.frame / table
String: Plot title
String: x-axis label
String: y-axis label
String: Name of the algorithm used to make predictions. If NULL, will look for
object$mod.name
. Default = NULL
Numeric, vector, length 4: Overall margins
Float: Height for labels
Float: Width and height for confusion matrix cells
Float: Height for metrics cells
Integer: The font
parameter for confusion matrix cells
Integer: The font
parameter for metrics cells
Float: The cex
parameter for confusion matrix cells
Float: The cex
parameter for first line of label cells
Float: The cex
parameter for second line of label cells
Float: The cex
parameter for metrics cells
Color for metrics cells' text
Color for metrics cells' background
String: "light", or "dark"
Color: The mid color for the confusion matrix. Default = "white" for theme = "light", "black" for "dark"
Color: The hi color for correct classification.
Color: The hi color for missclassification
Logical: If TRUE, reset par before exit. Default = TRUE
Float: PDF width, if filename
is set
Float: PDF height, if filename
is set
String: If specified, save plot to this path. Default = NULL
Not used
List of metrics, invisibly