[R] Graphics-Device-Size vs. Window-Size

Jens Oehlschlägel jens.oehlschlaegel at bbdo-interone.de
Wed Nov 8 11:52:38 CET 2000


I want to layout on screen a graphic bigger than the screen (width=16.53543,
height=11.69291) but strwidth() and strheight() 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="",
axes=FALSE)
> strwidth("Whatever")
[1] 0.08471151
> # Now resize the window and repeat
> strwidth("Whatever")
[1] 0.1856643

strwidth() obviously tells me how much space a text needs ON THE SCREEN, not
on the desired device size. Can someone enlighten what is the best way to
solve this?

Regards


Jens Oehlschlägel

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list