Skip to content
Prev 174686 / 398506 Next

Properly labeling abline with text?

Try this:

library(plotrix)
plot(x_vals, y_vals)
abline(h=min(y_vals), col="darkred")
boxed.labels(max(x_vals) - strwidth(bottom_label)/2, min(y_vals) +
strheight(bottom_label), bottom_label)

See ?boxed.labels for more.
On Mon, Mar 23, 2009 at 11:01 PM, Jason Rupert <jasonkrupert at yahoo.com> wrote: