tadaa_plot_tukey: Plot TukeyHSD Results as Errorbars

Description Usage Arguments Value Note See Also Examples

View source: R/tadaa_plots.R

Description

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.

Usage

1
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

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

Example output



tadaatoolbox documentation built on July 2, 2020, 2:30 a.m.