Learn R Programming

fields (version 16.3)

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
world( col=3)
yline( seq( -80,80,10),col=4, lty=2)
xline( seq( -180,180,10),col=4,lty=2)
yline( 0, lwd=2, col=4)

Run the code above in your browser using DataLab