Skip to content

pointsize - what is wrong?

2 messages · Kosenkov Kirill Nikolaevich, Brian Ripley

#
Hello!
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

Thanx.
#
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:

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