[R] Windows plots & fontsize

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jan 21 19:08:53 CET 2005


Halldor Björnsson wrote:

> I recently wrote a package that runs on both Linux and Windows.
> The functions fetch data to an SQL database and make diverse plots, 
> usually with many labels and annotations.
> 
> I recently noticed that on SOME windows computers the fonts
> in the plots were too large, which caused labels to overlap.
> 
> On other windows computers this does not happen.
> However on both computers the command par("ps") gives 12
> 
> Now, windows is not my forte, but it seems likely that this has to do 
> with some user/system settings. If so, my users would probably object to 
> me tweaking their windows setup since it might have an effect on other 
> programs.
> 
> One simple solution is to use par(ps=10), but I cannot find out how to
> set this globally.
> 

All this depends on the device. Which device are we talking about?


> a) Does anyone know how I can set par(ps=10) by default on all figure?

For the postscript device see ?ps.options.


> b) Is there a windows specific way to set default fontsizes in figures?

No. But you might want to read the second paragraph in ?windows if we 
are talking about this device.

Uwe Ligges


> Thanks,
> Halldór
>




More information about the R-help mailing list