get.Pcent {maptools}R Documentation

Polygon centroids

Description

return the centroids of a map of polygons

Usage

get.Pcent(theMap)

Arguments

theMap a Map object returned by read.shape()

Value

a matrix of centroids.

Author(s)

Nicholas J. Lewin-Koh, modified by Roger Bivand Roger.Bivand@nhh.no

Examples

x <- read.shape(system.file("shapes/sids.shp", package="maptools")[1])
get.Pcent(x)

[Package maptools version 0.6-9 Index]