Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme element "legend.title" no longer works with element_textbox #119

Open
AngusMackenzie opened this issue Dec 13, 2024 · 0 comments
Open

Comments

@AngusMackenzie
Copy link

I recently updated ggplot and now using element_textbox / element_textbox_simple causes an error when applying it to the theme element "legend.title". Any solution is appreciated as this is how I title all my legends! Thanks

library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.4.2
library(ggtext)

ggplot(data = mtcars, aes(x = disp, y = mpg, color = cyl)) + 
  geom_point(size = 4) +
  labs(color = "Engine<br>Cylinders") +
  theme(legend.title = element_textbox() )
#> Error in eval(substitute(expr), data, enclos = parent.frame()): object 'angle' not found

Created on 2024-12-13 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant