Learn R Programming

Rlab (version 4.0)

yline: Draw horizontal lines

Description

Adds horizontal lines in the plot region.

Usage

yline(y, ...)

Arguments

y

Values on y axis specifying location of vertical lines.

Any ploting options for abline.

See Also

xline, abline

Examples

Run this code
# NOT RUN {
plot( 1:10)
yline( 4.0, col=3)
# }

Run the code above in your browser using DataLab