Learn R Programming

emil (version 2.1.1)

vlines: Add vertical or horizontal lines to a plot

Description

Add vertical or horizontal lines to a plot

Usage

vlines(x, lend = 1, ...)

hlines(y, lend = 1, ...)

Arguments

Examples

Run this code
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