remove_legend | R Documentation |
Remove legend or legend title
remove_legend(plot)
remove_legend_title(plot)
plot |
A |
A tidyplot
object.
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.