-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issues with geom_tile() #103
Comments
A possible solution could be defining |
@thomasp85 have you seen this issue? Is this correct? Thank you! |
Could this also comes from |
Yes, this is due to anti-aliasing. I acknowledge the issues in these very specific cases that applying AA can have but don't have a fantastic solution for it other than using the default device. Removing AA from fill is def not the right general solution as it degrades the quality in every other situation |
But if I understand correctly also cairo-png uses anti-aliasing, right? Also, this issue started with an update on ragg at the end of last year. In the case of cairo I don't get the artefacts. |
No, the Cairo devices doesn't apply antialiasing to fill, which is siding with your use case at the expense of plotting quality everywhere else. I'm afraid there is no silver bullet for this at the moment but thankfully you can always use the default device when needing it for these plots |
Until that silver bullet appears (?!), and as alternative to switching graphics drivers, could there be a optional setting for For example:-
Thanks! |
While I understand the intent of this idea there is nothing simple about adding this in a way that doesn't impede the performance or quality of the graphic devices in ragg in general. While I won't say that this will never see the light of day you should not wait out for it and rather switch back to using |
One small tweak you can make to avoid this issue while remaining in ragg is to add a thin border to all tiles with the same color ggplot(r_xy,
aes(x, y, fill = elev, color = elev), linewidth = 0.1) +
geom_tile() +
theme_void() or use ggplot(r_xy,
aes(x, y, fill = elev)) +
geom_raster() +
theme_void() |
Hi,
Lately, I have had issues using ragg (last version) with geom_tile(). I am not sure where it comes from, but using png_cairo on windows doesn't provoke this strange pattern, which I guess come from "colour".
RAGG
PNG
My session info is:
The text was updated successfully, but these errors were encountered: