-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Ignoring unknown aesthetics "width" for geom_col() #2473
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
Hi @Ryo-N7, Thanks for including a reprex— would you mind paring this down to make it more minimal? The reprex do's and dont's is a helpful guide for this. Basically, you want to remove any extraneous aesthetics and simplify the code as much as possible so that it's easy for maintainers to skim and see the problematic pieces. Thanks |
Hi @batpigandme, yes, sorry i reprex'd this straight out of my working script. updated to something more minimal, is this okay? |
Much better, thanks! |
Since you're not mapping width to a variable it doesn't belong within ggplot(df, aes(x = IndicatorName)) +
geom_col(aes(y = PercWeek), width = 0.5, alpha = 0.6) +
geom_col(aes(y = PercYear), width = 0.75, alpha = 0.3) +
geom_col(aes(y = Perc, fill = BehindBy), width = 0.15, color = "black") +
scale_fill_gradient("", limits = c(Low_Level, 0), low = "red", high = "green",
guide = FALSE) +
coord_flip() |
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/ |
Uh oh!
There was an error while loading. Please reload this page.
Similar to issue #2066 , I still am getting unexpected warning messages when
width
aesthetic clearly specified.Created on 2018-03-06 by the reprex package (v0.2.0).
The text was updated successfully, but these errors were encountered: