[R] pointsize - what is wrong?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 6 20:15:55 CEST 2003


You have the sources: look at src/gnuwin32/devga.c, line 2217.
You can change that as you please and recompile R.

*However* that is the base font size, and R uses graphics parameter cex to
scale the text thereafter.  There are limits of [2, 100] points for the
scaled font size.

The default is 12 point, on a 7" square window.  24 point might be
appropriate to a 14" or 1000 pixel png/jpeg.  That's pretty high
resolution, and if that is not enough, I would question why you are using
a bitmap format anyway, and if you absolutely needed to I would suggest
you used some other tools to rasterize (as R's bitmap() function does).

On Tue, 6 May 2003, Kosenkov Kirill Nikolaevich wrote:

> When I am trying to produce plot with text with pointsize 30 or
> greater R sets up a default pointsize of 12 on plot.
> I need to set up a large pointsize to make large jpeg or
> png files (with good resolution).
> I can write text on plot with pointsizes 18,20,22, but i cant
> write text with pointsizes 25,26 and greater and i can not
> understand - why? Is there are any restrictions in R? Or what?

> I am using R 1.7.0 on Win2k

Perhaps you should say that first, *and* that you are using a png() device 
(if you are).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list