Skip to contents

Create confusion matrix as flextable with the accuracy statatistics are in the marginal rows and columns.

Usage

aa_flextable_classic(
  aalist,
  type = "percent",
  decimals_cells = NULL,
  decimals_stats = 3,
  diagonal = TRUE,
  scale_accuracy = 1,
  font_size = 10,
  font_name = "Cambria",
  capitalize = TRUE,
  header_height = NULL,
  header_rotate = FALSE,
  rm_zero = TRUE,
  out_file = NULL
)

Arguments

aalist

output from aa_card

type

either "count", "proportion" or "percent" (default)

decimals_cells

number of digits

decimals_stats

number of digits

diagonal

formats diagonal cells as italic

scale_accuracy

Default 1, Set to 100 to obtain percent values

font_size

font_size

font_name

font_name

capitalize

class names first capital letter

header_height

header_height

header_rotate

header_rotate (True/False)

rm_zero

remove zeros (True/False)

out_file

output file name (*.docx or *.html)

Value

flextable

Details

Create confusion matrix as flextable

Author

Dirk Pflugmacher