Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Created October 10, 2017 13:08
Show Gist options
  • Select an option

  • Save aurielfournier/b897f1b4b507ef823b67f59acfce733d to your computer and use it in GitHub Desktop.

Select an option

Save aurielfournier/b897f1b4b507ef823b67f59acfce733d to your computer and use it in GitHub Desktop.
library(maptools)
## --- from http://www.naturalearthdata.com/downloads/10m-physical-vectors/
srange <- readShapePoly("gis/ne_10m_lakes")
## --- Only the largest lakes
srange <- srange[srange$scalerank==0,]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment