[R] pass longer arguments to adj of text()

Thomas Steiner finbref.2006 at gmail.com
Mon Oct 20 20:08:32 CEST 2008


Hi,

text()'s pos does handle more dimensional labels, while adj does not -
or how can I pass an array to text() and use the adj argument (skyblue
text)?

plot(-1:1,-1:1)
text(c(0,0),c(0,0),c("a","b"),pos=c(1,2),col="red")
text(c(0,0),c(0,0),c("a","b"),adj=cbind(c(1,2),c(1,1)),col="skyblue")

Thomas



More information about the R-help mailing list