aa_confusion_matrix_gtable
aa_confusion_matrix_gtable.Rd
Create confusion matrix as gt table
Usage
aa_confusion_matrix_gtable(
aalist,
type = "percent",
out_file = NULL,
title = NULL,
cellColorRange = NULL,
accuracyColorRange = c(0, 1),
decimals.cells = 2,
decimals.accuracy = 2,
scale.accuracy = 100,
classLabels = NULL,
removeX = F,
zero.rm = T,
colNumbering = F
)
Arguments
- aalist
output from aa_card or aa_stratified
- type
either "count", "proportion" or "percent" (default)
- out_file
html filename
- title
add title to table header
- cellColorRange
Min-max range for color stretch of table cells
- accuracyColorRange
Min-max range for color stretch of accuracy cells
- decimals.cells
Number of decimal places for matrix body
- decimals.accuracy
Number of decimal places for accuracy stats
- scale.accuracy
Default 1, Set to 100 to obtain percent values
- classLabels
Vector of class labels to append to row names
- removeX
set TRUE to remove leading X in column names
- zero.rm
remove zeros (True/False)
- colNumbering
Set TRUE to replace column names with numbers