getCentroids | R Documentation |
Determine a polygon's centroid based on information stored in slot 'labpt'. Taken from http://linkedscience.org/tools/sparql-package-for-r/tutorial-part-ii-calculating-deforestation-per-state/.
getCentroids(spP)
spP |
SpatialPolygons or SpatialPolygonsDataFrame. |
A numeric matrix of x and y coordinates.
Florian Detsch
SpatialPolygons
, SpatialPolygonsDataFrame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.