-
-
Save sfsheath/8affe464e33379bdab74 to your computer and use it in GitHub Desktop.
(Not counting calls to library) 2 lines of R code that map data from Open Access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install.packages("plotGoogleMaps") | |
# install.packages("jsonlite") | |
# install.packages("rgdal") | |
library(jsonlite) | |
library(rgdal) | |
library(plotGoogleMaps) | |
readOGR(dsn = "http://146.148.79.138/sets/Cyprus.json?q=african&response=geo-record&rows=10000", layer = "OGRGeoJSON") -> oa.json | |
m1<-plotGoogleMaps(oa.json,zcol = "early.bce.ce", filename="oa.html") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment