abline(a, b) abline(coef) abline(reg) abline(h=, v=)
Graphical parameters may also be supplied as arguments to this function (see par).
# line with 0 intercept and slope 1 abline(0, 1)# line produced by least-squares fit abline(lsfit(longley.x[, 1], longley.y))
# dotted vertical lines at x==0 and 10 abline(v = c(0, 10), lty = 2)