plotContTable: Plot the confution matrix

Description Usage Arguments Value

View source: R/evaluation_metrics.R

Description

Plot the confution matrix

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotContTable(
  est_label,
  true_label,
  short.names = NULL,
  y.ord = NULL,
  x.ord = NULL,
  xlab = "Reference",
  ylab = "",
  threshold = NULL
)

Arguments

est_label

vector of estimated labels

true_label

vector of true labels

short.names

(optional) rename the reference true labels for plots

y.ord

(optional) a vector lenght of the number of rows of table, re-ordering the rows

x.ord

(optional) a vector lenght of the number of columns of table, re-ordering the columns

xlab

(optional) string, x axis label (default reference)

ylab

(optional) string, y axis label (default empty)

threshold

(optional) non-negative value, lower threshold, above which the values are shown (default NULL)

Value

the plot (ggplot object)


pengminshi/cFIT documentation built on July 11, 2021, 11:12 p.m.