Skip to content
Prev 139293 / 398506 Next

Specifying relative position of text in a plot

Tom La Bone asked:
See the help of par:
?par

Namely:

plot(rnorm(100), rnorm(100))
pu <- par()$usr
x <- pu[1] * 0.5 + pu[2] * 0.5
y <- pu[3] * 0.1 + pu[4] * 0.9
text(x, y, "the quick brown fox jumps over a lazy dog")

Alberto Monteiro