abline2: Generate arguments to plot a line

Description Usage Arguments Value Author(s) See Also Examples

View source: R/abline2.R

Description

Generates arguments to plot a line via abline

Usage

1
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

1
2
3
4
5
6
7
8
9
##---- 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),...))
    }

p3d documentation built on May 2, 2019, 5:25 p.m.