[R] Font quality in base graphics

Mike Prager mike.prager at noaa.gov
Tue Jul 15 22:30:42 CEST 2008


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.



More information about the R-help mailing list