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.

6 comments:

  1. Nice one! Thanks for sharing.

    Something that I've wrangled with once or twice and just gave up on and used QGIS instead.

    ReplyDelete
  2. Thanks.

    I have also one question: Do you know the way to delete the white area around inset map?

    ReplyDelete
  3. Hi Nowgis,


    See the link below:

    http://stackoverflow.com/questions/21027548/cropping-extra-white-space-in-a-plot-made-using-ggplot-package-in-r

    ReplyDelete
  4. Hi Arnold,

    This 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

    ReplyDelete
    Replies
    1. Hi Coco,

      Try

      type the code print(p1) to view the map, if that's what you want to do. Or just type p1.

      Hope this helps.

      Delete
  5. Nice post,it's very informative.i found the best information.I updated my knowledge with this blog.it can help me to crack GIS jobs in Hyderabad.

    ReplyDelete