Learn R Programming

Rlab (version 4.0)

xline: Draw a vertical line

Description

Adds vertical lines in the plot region.

Usage

xline(x, ...)

Arguments

x

Values on x axis specifying location of vertical lines.

Any ploting options for abline.

See Also

yline, abline

Examples

Run this code
# NOT RUN {
plot( 1:10)
xline( 6.5, col=2)
 
# }

Run the code above in your browser using DataLab