vertLines: Add Vertical Lines to a Plot

Description Usage Arguments Examples

View source: R/utility_functions.R

Description

Draws a set of vertical lines all of the same height onto an existing plot.

Usage

1
vertLines(xval, yl, ...)

Arguments

xval

a vector of x-axis values at which to draw the lines.

yl

the bottom and top boundaries for the height of the lines.

...

additional parameters for the segments function.

Examples

1
2
plot( rnorm(100), rnorm(100), ylim = c(-3,3) )
vertLines( -2:2, c(-4,4) )

rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.