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
Fill in ggplot2 is always red, regardless of what colour is actually specified. #1675
Comments
Thanks, it works properly now! Any reason it defaults to that red instead of throwing an error or something if it's defined within aes()? Had it thrown an error I would have been much less bewildered. |
By putting the values in
If you set the values outside of aes, ggplot2 won't make the legend for you.
|
Ah, that makes perfect sense. Thanks again for your help! |
Might I ask why it makes sense? I am new to ggplot, using qplot, somehow my fill color is always red. what is wrong with qplot(x, y, color='blue'...), why is it always 'red'? |
@ipstone, if you are new to ggplot2 stay away from qplot.
The aesthetic values in |
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/ |
For whatever reason, whenever I try to specify a fill colour for a violin plot it always renders as a pastel red, regardless of what I tell it. Here is some simple code that reproduces the bug for me in a fresh R session:
Running this code gives me this:
This happens no matter which fill colour I specify. When I don't specify a fill, the fill defaults to white as expected:
This happens with the official CRAN binary in the R GUI.app as well as with R 3.3.1 installed from Homebrew. I also did a fresh install of ggplot2 on a fresh install of R when I generated the above graphs. Any ideas what's going on?
Platform info:
The text was updated successfully, but these errors were encountered: