This is a simple plotting template that takes the broom::tidy'd output of stats::TukeyHSD or alternatively the print = "df" output of tadaa_pairwise_tukey and plots it nicely with error bars.

tadaa_plot_tukey(data, brewer_palette = "Set1")

Arguments

data

The broom::tidy'd output of stats::TukeyHSD.

brewer_palette

Optional: The name of the RColorBrewer palette to use, defaults to Set1. Use NULL for no brewer palette.

Value

A ggplot2 object.

Note

The alpha of the error bars is set to 0.25 if the contrast is not significant, and 1 otherwise. That's neat.

See also

Other Tadaa-plot functions: tadaa_balance(), tadaa_int(), tadaa_mean_ci()

Examples

tests <- tadaa_pairwise_tukey(data = ngo, deutsch, jahrgang, geschl, print = "df") tadaa_plot_tukey(tests)