Remove legend or legend title
Arguments
- plot
A
tidyplot
generated with the functiontidyplot()
.
Examples
# Before removing
study %>%
tidyplot(x = treatment, y = score, color = treatment) %>%
add_mean_bar()
# After removing
study %>%
tidyplot(x = treatment, y = score, color = treatment) %>%
add_mean_bar() %>%
remove_legend_title()
study %>%
tidyplot(x = treatment, y = score, color = treatment) %>%
add_mean_bar() %>%
remove_legend()