-----Original Message-----
From: Martin Maechler [mailto:maechler at stat.math.ethz.ch]
Sent: Thursday, November 23, 2000 12:44 PM
To: jens.oehlschlaegel at bbdo-interone.de
Cc: R-help at stat.math.ethz.ch
Subject: Re: [R] Graphics-Device-Size vs. Window-Size
"Jens" == Jens Oehlschlaegel
<jens.oehlschlaegel at bbdo-interone.de> writes:
on Wed, 8 Nov 2000 11:52:38 +0100
Jens> I want to layout on screen a graphic bigger than the screen
Jens> (width=16.53543, height=11.69291) but strwidth()
and strheight()
Jens> give wrong results.
>> x11(width=42/2.54, height=29.7/2.54, pointsize=12)
>> plot(1,1, type="n", xlim=c(0, 1), ylim=c(-1, 0),
xlab="", ylab="",
Jens> axes=FALSE)
>> # Now resize the window and repeat
>> strwidth("Whatever")
Jens> [1] 0.1856643
Jens> strwidth() obviously tells me how much space a text
needs ON THE
Jens> SCREEN, not on the desired device size. Can someone
enlighten
Jens> what is the best way to solve this?
Since you are mentioning this again:
Have you looked at help(strwidth)
and seen the three different kinds of units that you can ask for ?