polylist2list {GeoXp}R Documentation

Extract from a 'polylist' object the vertices of the polygons

Description

The function `polylist2list' extracts the vertices of the polygons from a `polylist' object, seperating polygons from each other by 3 rows of NaN.

Usage

polylist2list(data)

Arguments

data A `polylist' object

Details

The user can then represent the coordinates of sites of a `polylist' object as background map, using the option `carte' included in all interactive functions of GeoXp.

Value

It returns a matrix of numeric values with 2 columns ($x$ and $y$ coordinates of the vertices of the polygons) where polygons are seperated from each other by 3 rows of NaN.

Author(s)

Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.

References

Bivand R. (2006), `The spdep package', http://cran.r-project.org/doc/packages/spdep.pdf.

See Also

spdf2list,map2list

Examples

data(eire.polys)
eire.contours<-polylist2list(eire.polys)

[Package GeoXp version 1.0 Index]