vp_plot_matrix: Plots normalized confusion matrix

View source: R/EC_functions.R

vp_plot_matrixR Documentation

Plots normalized confusion matrix

Description

Plots normalized confusion matrix

Usage

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 July 12, 2022, 5:07 p.m.