I suggest a simple enhancement to segments() and arrows() to facilitate drawing horizontal and vertical segments -- set default values for the second x and y arguments equal to the first set. This is handy, especially when the expressions for coordinates are long.
Compare: Segments: < function (x0, y0, x1 = x0, y1 = y0, col = par("fg"), lty = par("lty"), --- > function (x0, y0, x1, y1, col = par("fg"), lty = par("lty"), Arrows: < function (x0, y0, x1 = x0, y1 = y0, length = 0.25, angle = 30, code = 2, --- > function (x0, y0, x1, y1, length = 0.25, angle = 30, code = 2, Tim Hesterberg ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel