Easily generate heatmaps to show how well balanced groups are designed, e.g. for ANOVA.

tadaa_balance(data, group1, group2, palette = "D", annotate = TRUE)

Arguments

data

A data.frame

group1

The grouping variable on the x-axis

group2

The grouping variable on the y-axis

palette

The viridis::viridis color palette to use; c("A", "B", "C", "D"), defaults to "D"

annotate

Should the n of each group be displayed in each cell of the heatmap?

Value

A ggplot2 object

See also

Other Tadaa-plot functions: tadaa_int, tadaa_mean_ci, tadaa_plot_tukey

Examples

tadaa_balance(ngo, jahrgang, geschl)