autoplot.table: Plot a contingency table (i.e. confusion matrix) as a heat...

Description Usage Arguments See Also Examples

Description

Plot a contingency table (i.e. confusion matrix) as a heat map

Usage

1
2
## S3 method for class 'table'
autoplot(object, norm = "none", trans = NULL)

Arguments

object

contingency table, returned by function table() (or confusion_matrix)

norm

normalisation method: "none", by row ("rows", to represent precision), or by column ("columns", to represent recall); can be abbreviated

trans

function used to transform the counts in the contingency table (such as sqrt, log, log1p)

See Also

Other confusion statistics functions: blank_diagonal, confusion_matrix, confusion_stats

Examples

1
2
3
4
5
n <- 50
pred <- sample(letters[1:5], size=n, replace=TRUE)
valid <- sample(letters[2:8], size=n, replace=TRUE)
x <- confusion_matrix(pred, valid)
# autoplot(x)

jiho/zooprocessr documentation built on May 19, 2019, 10:31 a.m.