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