-
Notifications
You must be signed in to change notification settings - Fork 2k
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
White-line artifacts with geom_col
#4183
Comments
It's almost certainly an aliasing artifact. The workaround is to not draw a filled area by drawing many thin vertical lines. |
The simple answer is it's very difficult to avoid aliasing effects for such plots. Once grid graphics support gradients, this may be possible, but at this time it is not. The geom
Created on 2020-08-26 by the reprex package (v0.3.0) |
Thanks for the detailed explanation. I'll try out |
The |
(Originally posted on Stack Overflow, but I suspect it's a bug.)
I'm not sure exactly what conditions cause this to happen, but here's a pretty small example derived from the real plot that I was working on when I ran into this:
With ggplot2 3.3.2 on R 3.6.2 on Linux, I get this:
Note the white line at about x = 0.8.
Presuming that this won't be fixed soon, I'd still appreciate a reliable workaround.
The text was updated successfully, but these errors were encountered: