Plots confusion matrix and classification metrics
mplot3.conf(object, main = "auto", xlab = "Reference",
ylab = "Estimated", plot.metrics = TRUE, mod.name = NULL,
oma = c(0, 0, 0, 0), main.height = 1, dim.lab = 1, dim.in = 4,
dim.out = -1, font.in = 2, font.out = 1, cex.main = 1.8,
cex.in = 1.8, cex.lab = 1.8, cex.lab2 = 1.8, cex.lab3 = 1.5,
cex.out = 1.4, col.main = "auto", col.lab = "auto",
col.text.out = "auto", col.bg = "auto", col.bg.out1 = "auto",
col.bg.out2 = "auto", col.text.hi = "auto", col.text.lo = "auto",
theme = getOption("rt.theme", "light"), mid.col = "auto",
hi.color.pos = "#18A3AC", hi.color.neg = "#F48024",
par.reset = TRUE, pdf.width = 4.5, pdf.height = 4.5,
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
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
String: "light", or "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
Numeric, vector, length 4: Overall margins
Color for metrics cells' background
Color: The mid color for the confusion matrix. Default = "white" for theme = "light", "black" for "dark"
List of metrics, invisibly