Skip to content

Instantly share code, notes, and snippets.

@andybega
Created February 5, 2019 10:47
Show Gist options
  • Save andybega/c9dfce216ae0cb7d217a4f6f9b6cb04f to your computer and use it in GitHub Desktop.
Save andybega/c9dfce216ae0cb7d217a4f6f9b6cb04f to your computer and use it in GitHub Desktop.
cshapes with sf
library(cshapes)
library(sf)
states <- cshp(as.Date("2016-01-01"), useGW = TRUE)
states <- st_as_sf(states)
yemen <- states[states$CNTRY_NAME=="Yemen", ]
plot(yemen[, 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment