abline2: Generate arguments to plot a line

View source: R/abline2.R

abline2R Documentation

Generate arguments to plot a line

Description

Generates arguments to plot a line via abline

Usage

abline2(p1, p2, ...)

Arguments

p1

Either a list of points or a single point

p2

Another point

...

Other points, or arguments to abline

Value

None. Used for its side effect

Author(s)

Georges Monette

See Also

abline

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function( p1, p2, ...) {
            if ( is.list(p1)) abline2( p1[[1]], p1[[2]], ...)
            else do.call( abline, c(ab(p1,p2),...))
    }

gmonette/p3d documentation built on Nov. 16, 2023, 11:31 p.m.