maptools (version 0.3-4)

get.Pcent: 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.

Examples

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

Run the code above in your browser using DataCamp Workspace