You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
Created on 2024-12-13 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: