You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easy enough if you know this trick. I'd suggest to automatically set type = 'cairo-png' and antialias = 'subpixel' on Windows if these arguments have not been explicitly set. I've recently implemented something along those line in the {hexSticker} package which uses ggsave(). Have a look here.
I'd be happy to create a pull request.
The text was updated successfully, but these errors were encountered:
When using
ggsave()
to save a plot aspng
on Windows the resulting image is quite aliased (zoom in to see the ragged line).This is a known issue of the
png()
graphics device on Windows. To mitigate this one has to usecairo
and set theantialias
argument like so.This is easy enough if you know this trick. I'd suggest to automatically set
type = 'cairo-png'
andantialias = 'subpixel'
on Windows if these arguments have not been explicitly set. I've recently implemented something along those line in the{hexSticker}
package which usesggsave()
. Have a look here.I'd be happy to create a pull request.
The text was updated successfully, but these errors were encountered: