Source: This script is based on different bits of code from other people with amazing R skills: Claudia Engel - code | Ewen Gallic - code | James Cheshire - code | Arthur Charpentier - code.
Flat or Spherical Map:
Source: This script is based on different bits of code from other people with amazing R skills: Claudia Engel - code | Ewen Gallic - code | James Cheshire - code | Arthur Charpentier - code.
Flat or Spherical Map: