vp_plot_matrix: Plots normalized confusion matrix

Description Usage Arguments Value Author(s)

View source: R/EC_functions.R

Description

Plots normalized confusion matrix

Usage

1
vp_plot_matrix(cm, classes, type, addLabels = TRUE, threshold = NULL)

Arguments

cm

Confusion matrix (numeric)

classes

character list of classes present in confusion matrix (ordered)

type

character value 'NN', 'SVM' or 'Dual', appended to 'Confusion Matrix' to create title

addLabels

logical value whether to add percentage accuracy labels to plot (defaults to TRUE)

threshold

numeric value which determines the minimum value of frequency labelled on the plot on a normalized scale of 0-1 (useful for highlighting significant disagreement)

Value

a visualization of the confusion matrix, normalized

Author(s)

E. Chisholm


vprr documentation built on Nov. 2, 2020, 5:07 p.m.