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

Ian Worthington |@nworth|ngton @end|ng |rom y@hoo@com
Sat Jul 25 04:34:39 CEST 2026


Ican --
Is there any documentation as to the best /type/ to use with a particular /device/?    I'm outputting to PNG on Windows, for instance: should I be using a specific type?  

Best wishes / Mejores deseos /  Meilleurs vœux

Ian ... 

    On Friday, July 24, 2026 at 07:08:45 AM GMT-5, Ivan Krylov via R-help <r-help using r-project.org> wrote:  
 
 В 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

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
  
	[[alternative HTML version deleted]]



More information about the R-help mailing list