-
Notifications
You must be signed in to change notification settings - Fork 2.1k
aesthetics error if only argument is an expression #2764
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
Comments
I believe this is the same issue as #2675. |
Thanks a lot. So I'll wait till it's solved : ) |
@emrichter yes. I'll close this, since it's the same issue, though. |
BTW there's an easy work around in the mean time: ggplot(data = mpg, aes(displ, cty)) +
geom_point(aes(,, !!arg := manufacturer)) |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to dynamically generate a ggplot-object from within a function. For this, I save a parameter name like "color" or "fill" (dependent on the geom) as an expression and I unquote it within aes().
As long as I leave the x and y in the geom-function everything works. If I move them to ggplot() though, I get an error.
What am I missing?
Here a repex:
The text was updated successfully, but these errors were encountered: