Description Usage Value Author(s) Examples
View source: R/utils_plotting.R
Remove the legend in a ggplot
1 | noLegend()
|
A theme element to hide legend
Selin Jessa
1 2 3 4 5 6 7 8 | # gg <- mpg %>%
# filter(class %in% c("compact", "suv")) %>%
# ggplot(aes(x = displ, y = hwy)) +
# geom_point(aes(colour = factor(year))) +
# facet_wrap(~ class, ncol = 2)
# gg
# gg + noLegend()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.