I’ve been using R in my daily doings more and more and as a student in the
geo-sciences making maps is pretty important. My first love is still GMT, but
R is proving useful and this is just a brief note on how to make a very simple
map using R and ggplot2.
Get the shapefile:
Install these packages (I’m lazy, so I just use the wildcard)
Open R and first do:
The needed packages should be installed. Load the libraries and read the
shapefiles. In this case ZAF_adm1 is South-Africa’s provincial demarcations.
And tada, a map of South-Africa
To add points in the map you can do
or if you have a file with a ton of lat/lon points