powered by
Add vertical or horizontal lines to a plot
vlines(x, lend = 1, ...)hlines(y, lend = 1, ...)
hlines(y, lend = 1, ...)
Coordinates of vertical lines.
Line ending style, see par.
par
Sent to segments.
segments
Coordinates of horizontal lines.
# NOT RUN { plot(0:10, 0:10, type="n") hlines(0:4*2.5, col="#dddddd") points(0:10, 0:10) # }
Run the code above in your browser using DataLab