Description Usage Arguments Value
View source: R/evaluation_metrics.R
Plot the confution matrix
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
)
|
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) |
the plot (ggplot object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.