biojl
biojl

Reputation: 1080

How to obtain koppen-geiger climate map for ggmap

I would like to use ggmap to plot several data points on top of a koppen-geiger climate map. The kopper-geiger data and GIS/KMZ maps can be downloaded here: http://koeppen-geiger.vu-wien.ac.at/present.htm

I've managed to have a code to plot the points on regular maps, obtained through the get_map function but I fail to use other maps such as koppen-geiger.

Any help will be appreaciated!

Upvotes: 2

Views: 1532

Answers (1)

dww
dww

Reputation: 31452

Your basic problem is that the map you are attmepting to use is an image file that is not georeferenced. So unless you want to go through the unnecessary and probably time consuming process of georeferencing this image yourself, you will be better taking an alternative approach. There are perhaps a few ways to do this. But, unless you have very few data points to overlay on the map which you can place manually using the lat-long grid of the image, then the least painful method will certainly be to redraw the map yourself using the shapefile. This is not the right place to give you an introductory lesson on GIS, but the basic steps are to

  1. Download shapefile (which is available at the same website as the image you linked)
  2. Project map to desired coordinate system
  3. Plot map, coloring by climate class
  4. Color the ocean layer
  5. Add labels, legend, and graticule, as desired
  6. Overplot with your own climate data, and legend for these.

If you are unsure how to approach any of these steps, then take an introductory course on GIS, and search the Web for instructional materials. You may find this resource useful.

https://cran.r-project.org/doc/contrib/intro-spatial-rl.pdf

Upvotes: 3

Related Questions