
Last chance! 50% off unlimited learning
Sale ends in
Remove legend or legend title
remove_legend(plot)remove_legend_title(plot)
A tidyplot
object.
A tidyplot
generated with the function tidyplot()
.
# 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()
Run the code above in your browser using DataLab