Description Usage Arguments Author(s)
Import shapefile into an R spatial polygons object. Useful for plotting within the leaflet package, or for downstream use to convert into a series of lat/lon coordinates.
1 |
baseDir |
string containing the name of the base directotry containing the shapefile |
folderName |
(optional) string containing the name of the folder within baseDir containing the shapefile. Not required if baseDir contains the full name of the folder containing the shapefile |
layerName |
string containing the name of the shapefile, e.g. 'district_boundary' for 'district_boundary.shp'. Should not include '.shp' |
Laura Hughes, laura.d.hughes@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.