Learn R Programming

fisheyeR (version 0.9)

puntosMedios: Connect 2D coordinates points

Description

puntosMedios connects points in 2D coordinates. A function taking 2D coordinates given and joining the corresponding points.

Usage

puntosMedios(Pcoords, detalle = 5)

Arguments

Pcoords
matrix object with coordinates
detalle
Detail

Value

An object of class matrix with coordinates of the connectors.

Details

See example below

See Also

plotPOI, lines

Examples

Run this code
   obj <- matrix(c(.5,0,0,.5, -.5,0, 0,-.5), ncol = 2, byrow = TRUE)
   plot(0, 0, col = 'white')
   points(puntosMedios(obj), col = 'yellow', type = 'l')
   points(obj, col = 'blue')   

Run the code above in your browser using DataLab