Learn R Programming

emil (version 2.2.10)

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

x

Coordinates of vertical lines.

lend

Line ending style, see par.

...

Sent to segments.

y

Coordinates of horizontal lines.

Examples

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