xy: Points from list for plotting

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xy.R

Description

Turn lists of points into a matrix for plotting

Usage

1
xy(p1, p2)

Arguments

p1

A matrix of (x,y) coordinates, or a list of such matrices

p2

A matrix of (x,y) coordinates

Value

The result of rbind on the arguments

Author(s)

Georges Monette

See Also

rbind, ~~~

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##---- 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 ) {
          # turn list of points into matrix for plotting
          if( is.list( p1) ) do.call( rbind, plist)
          else rbind( p1, p2)
    }

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