horizLines: Add Horizontal Lines to a Plot

Description Usage Arguments Examples

View source: R/utility_functions.R

Description

Draws a set of horizontal lines all of the same width onto an existing plot.

Usage

1
horizLines(yval, xl, ...)

Arguments

yval

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

xl

the left and right boundaries for the width of the lines.

...

additional parameters for the segments function.

Examples

1
2
plot( rnorm(100), rnorm(100), xlim = c(-3,3) )
horizLines( -2:2, c(-4,4) )

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