tadaatoolbox (version 0.16.0)

tadaa_balance: Grouping design balance

Description

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

Usage

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

Run this code
# NOT RUN {
tadaa_balance(ngo, jahrgang, geschl)
# }

Run the code above in your browser using DataCamp Workspace