Create confusion matrix as gtable
aa_gtable.RdCreate confusion matrix as gt table
Usage
aa_gtable(
aalist,
type = "percent",
out_file = NULL,
caption = NULL,
cell_colors = TRUE,
cellColorRange = NULL,
accuracyColorRange = c(0, 1),
decimals_cells = 2,
decimals_stats = 2,
scale_accuracy = 100,
class_labels = NULL,
capitalize = TRUE,
rm_x = FALSE,
rm_zero = TRUE,
col_numbers = FALSE
)Arguments
- aalist
output from aa_card or aa_stratified
- type
either "count", "proportion" or "percent" (default)
- out_file
html filename
- caption
add caption to table header
- cell_colors
Set TRUE to color cells
- cellColorRange
Min-max range for color stretch of table cells. If set to -1, the range is calculated from the data. If null (default) range is calculated by column
- accuracyColorRange
Min-max range for color stretch of accuracy cells
- decimals_cells
Number of decimal places for matrix body
- decimals_stats
Number of decimal places for accuracy stats
- scale_accuracy
Default 1, Set to 100 to obtain percent values
- class_labels
Vector of class labels to append to row names
- capitalize
capitalize first letter in class names
- rm_x
set TRUE to remove leading X in column names
- rm_zero
remove zeros (True/False)
- col_numbers
Set TRUE to replace column names with numbers