Re: [R] Font quality in base graphics

From: Mike Prager <>
Date: Tue, 15 Jul 2008 16:30:42 -0400

willemf wrote on 07/15/2008 08:42 AM:
> I am attempting to get publication quality graphs using R on Ubuntu. I
> encounter lots of problems in using cex to control font size: for instance
> cex=1.5 results in very blocky characters. I then tried to use res=1200
> while creating a PNG file, hoping that this would solve the problem, but it
> did not. When doing the above, a second problem appeared: the font size
> relative to the graphics decreased drastically. e.g. png("t1.png", res=1200,
> width=1200, height=1200). Is anyone prepared to give me a pointer of where
> to read about precise control over font type and font size in base graphics?
> I have two books on R graphics but this aspect is never treated in detail in
> any of them. Kind regards, willemf.

Any reason not to use PDF or EPS? They are vector graphics formats and will provide better text.

Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jul 2008 - 20:53:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jul 2008 - 21:32:41 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive