Sunday, June 15, 2014
Creating Inset Map with ggplot2
According to wiki.GIS.com one of the reason for using inset map is to provide a reference for an area for unfamiliar readers. Inset map is also considered a great asset for cartographers. Most of the GIS software available in the market have a provision for non-cartographer and beginners to create inset map. However, for R users who are into making maps, creating inset map is a bit challenging. Thanks to the post of Pascal Mickelson and Scott Chamberlain which gave users like me a guide on how to create inset map in R using ggplot2. Below is an example of map with inset created using R.
Labels:
ggplot2,
Mapping with R,
Philippines,
R
Subscribe to:
Post Comments (Atom)
Nice one! Thanks for sharing.
ReplyDeleteSomething that I've wrangled with once or twice and just gave up on and used QGIS instead.
Thanks.
ReplyDeleteI have also one question: Do you know the way to delete the white area around inset map?
Hi Nowgis,
ReplyDeleteSee the link below:
http://stackoverflow.com/questions/21027548/cropping-extra-white-space-in-a-plot-made-using-ggplot-package-in-r
Hi Arnold,
ReplyDeleteThis is exactly what I've been looking for!
Unfortunately, between the time of you posting this and today there must have been some changes made to the code base - as I can't get it to work: I keep getting the following message "Regions defined for each Polygons" after p1. I've looked online for a solution but still not managed to get it to work!
Any chance you may be able to help!?
Many thanks and best wishes
Hi Coco,
DeleteTry
type the code print(p1) to view the map, if that's what you want to do. Or just type p1.
Hope this helps.