tidyverse / ggplot2

An implementation of the Grammar of Graphics in R
https://ggplot2.tidyverse.org
Other
6.39k stars 2k forks source link

labeller example that uses an optional argument #5916

Open MLopez-Ibanez opened 1 month ago

MLopez-Ibanez commented 1 month ago

None of the examples here: https://ggplot2.tidyverse.org/reference/labellers.html show how to use the optional arguments to the functions. The naive p + facet_grid(. ~ cyl, labeller = label_both(sep=" = ")) doesn't work, so one example would help readers and point to the recommended usage.