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
Thanks for the report!
This seems to apply more broadly to all theme elements that allow numeric input, e.g.:
library(ggplot2)
ggplot(mpg, aes(displ, hwy, colour=cty)) +
geom_point() +
theme(legend.position= c(1L, 1L))
#> Error in `mapply()`:#> ! The `legend.position` theme element must be a <character/numeric>#> object.
I found a problem with
ggplot2()
usingtheme(aspect.ratio=value)
. Plotting fails ifvalue
is aninteger
Here is the code to reproduce the bug:
The text was updated successfully, but these errors were encountered: