Easily generate heatmaps to show how well balanced groups are designed, e.g. for ANOVA.
tadaa_balance(data, group1, group2, palette = "D", annotate = TRUE)
A data.frame
data.frame
The grouping variable on the x-axis
The grouping variable on the y-axis
The viridis::viridis color palette to use; c("A", "B", "C", "D"), defaults to "D"
c("A", "B", "C", "D")
"D"
Should the n of each group be displayed in each cell of the heatmap?
A ggplot2 object
Other Tadaa-plot functions: tadaa_int, tadaa_mean_ci, tadaa_plot_tukey
tadaa_int
tadaa_mean_ci
tadaa_plot_tukey
# NOT RUN { tadaa_balance(ngo, jahrgang, geschl) # }
Run the code above in your browser using DataCamp Workspace