[R] pch=15 symbol of size=10 mm

Jim Lemon bitwrit at ozemail.com.au
Tue May 9 14:18:20 CEST 2000


Denis White wrote:

> How do I determine cex in
>
>   points (x, y, pch=15, cex=?)
>
> to get a square whose side length is, say, 10 mm?
>
> thanks

The easy way would be:

points(6,3,pch=15,cex=10/(par("cin")[1]*25.4))

That is, divide your desired width by the current width in inches multiplied by
25.4,

but this won't _really_ give you a 10 mm square.  The hardcopy output you get
depends upon the size of the image you generate (e.g. the "bounding box" in
Postscript).  However, you could fudge it if you always use the same size
output...

Jim

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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