View source: R/read.geoShape.R
read.geoShape | R Documentation |
Function for reading geojson shape file into R, come out to be a SpatialPolygonsDataFrame object
read.geoShape(txt)
txt |
a JSON string, URL or file |
if(require(sp)){
filePath = system.file("geojson/china.json",package = "leafletCN")
map = read.geoShape(filePath)
plot(map)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.