plotconfusionmatrix: Plot 2 x 2 confusion matrix

Description Usage Arguments Value

Description

This function creates an illustrated confusion matrix for two-class problems

Usage

1
2
3
plotconfusionmatrix(confMatrix, plotLabels = colnames(confMatrix)[1:2],
  plotTitle = "", colDiag = "darkblue", colOffDiag = "grey",
  colAxes = "blue", colTicks = "red")

Arguments

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")

Value

None, a plot is created


jjvalletta/featselectRF documentation built on May 7, 2019, 2:55 a.m.