Description Usage Arguments Value
This function creates an illustrated confusion matrix for two-class problems
1 2 3 | plotconfusionmatrix(confMatrix, plotLabels = colnames(confMatrix)[1:2],
plotTitle = "", colDiag = "darkblue", colOffDiag = "grey",
colAxes = "blue", colTicks = "red")
|
confMatrix |
a 2 x 2 confusion matrix (classA | classB | classError) predicted vs observed |
plotLabels |
a character vector of length two with the ordered name of the two classes (default: colnames(confMatrix)[1:2]) |
plotTitle |
main title of plot (default: "") |
colDiag |
colour of the diagonal segments (correctly classified) (default: "darkblue") |
colOffDiag |
colour of the off diagnonal segments (misclassified) (default: "grey") |
colAxes |
colour of the x-y axes (default: "blue") |
colTicks |
colour of the x-y ticks (default: "red") |
None, a plot is created
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.