[R] GGSAVE does not save a good version of my graph
John Kane
jrkr|de@u @end|ng |rom gm@||@com
Sat Jul 25 14:28:40 CEST 2026
Maybe go to base R?
See "?png" for various choices.
On Fri, 24 Jul 2026 at 08:08, 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.
>
--
John Kane
Kingston ON Canada
[[alternative HTML version deleted]]
More information about the R-help
mailing list