Skip to content

Instantly share code, notes, and snippets.

@sfsheath
Created February 27, 2015 21:59
Show Gist options
  • Save sfsheath/8affe464e33379bdab74 to your computer and use it in GitHub Desktop.
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
# 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