[R] GGSAVE does not save a good version of my graph

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Fri Jul 24 14:08:23 CEST 2026


В Thu, 23 Jul 2026 20:18:38 +0000
"Sorkin, John" <jsorkin using som.umaryland.edu> пишет:

>   ggsave(plot=zz,
>          path=mypath,
>          filename=myfilename,
>          device="tiff",
>          width=4,height=3,
>          units="in",
>          dpi=600)

Hard to give a better answer without seeing the plot, but since you're
on Windows, try giving the additional argument type="cairo" to
ggsave(...). Otherwise tiff() uses the old GDI code that doesn't
perform anti-aliasing. The RStudio graphical device is distinct from
tiff() and performs anti-aliasing as well.

(Is is a requirement of your publisher to submit TIFF plots? It may be
possible to preserve them in higher quality as PDF files.)

-- 
Best regards,
Ivan



More information about the R-help mailing list