[R] Text adjustment outside (0,1)

BXC (Bendix Carstensen) bxc at novonordisk.com
Fri Aug 3 10:18:29 CEST 2001


Funnily enough, it seems that adjustment of text in the verical
direction is more flexible than in the horizontal. Horizontal
adjustment parameters, seem to be set to the closest of 0 and 1
if they fall outside (0,1). Try e.g.:

plot(0:1,0:1)
for (a in seq(-5,5,0.5) ) text(0.5, 0.5, "Y", adj=c(0,a), cex=2, col="red" )
for (a in seq(-5,5,0.5) ) text(0.5, 0.5, "X", adj=c(a,0), cex=2, col="blue"
)

Any particular reason for this restriction in the horizontal direction?

Bendix Carstensen

----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Centre
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 28 25 87 38
fax: +45 44 43 73 13
bxc at novo.dk
www.biostat.ku.dk/~bxc
----------------------


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