powered by
Function for reading geojson shape file into R, come out to be a SpatialPolygonsDataFrame object
read.geoShape(txt)
a JSON string, URL or file
# NOT RUN { if(require(sp)){ filePath = system.file("geojson/china.json",package = "leafletCN") map = read.geoShape(filePath) plot(map) } # }
Run the code above in your browser using DataLab