plotContTable: Plot the confusion matrix via heatmap, with true labels in...

View source: R/plot_utils.R

plotContTableR Documentation

Plot the confusion matrix via heatmap, with true labels in columns

Description

Plot the confusion matrix via heatmap, with true labels in columns

Usage

plotContTable(
  est_label,
  true_label,
  true_label_order = NULL,
  est_label_order = NULL,
  short.names = NULL,
  xlab = "Reference",
  ylab = NULL
)

Arguments

est_label

vector of estimated labels (rows)

true_label

vector of actual labels (columns)

true_label_order

order of column labels if provided

est_label_order

order of row labels if provided

short.names

short names of the true labels to be shown

xlab

x axis label

ylab

y axis label

Value

ggplot object


pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.