Function creating heatmap showing the composition of a test.

draw_composition_heatmap(
  composition,
  cat1,
  cat2,
  categorical_values1,
  categorical_values2
)

Arguments

composition

Tibble. Table showing the composition of a test.

cat1

Character. First dimension selected.

cat2

Character. Second dimension selected.

categorical_values1

Tibble. Categories associated to the first dimension selected.

categorical_values2

Tibble. Categories associated to the second dimension selected.

Value

A ggplot object ready for rendering.

Author

Nicolas Mangin