Description Usage Arguments Examples

This is a simple wrapper around `spLines`

that makes the creation of
`SpatialLines`

objects easy and intuitive

1 | ```
points2line(p)
``` |

`p` |
A SpatialPoints obect or matrix representing the coordinates of points. |

1 2 3 4 5 6 7 8 9 10 11 | ```
p = matrix(1:4, ncol = 2)
library(sp)
l = points2line(p)
plot(l)
l = points2line(cents)
plot(l)
p = line2points(routes_fast)
l = points2line(p)
plot(l)
l_sf = points2line(cents_sf)
plot(l_sf)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.