R with ggplot2/ggmap - How to load a png image as a map

المشرف العام

Administrator
طاقم الإدارة
I am trying to find a workaround for ggmap's missing support of world maps (i.e. you can't create any maps that show latitudes > 80°, due to idiosyncrasies in the mapproj package).To a limited extend however, it seems possible to create empty world maps and save them as an image (png etc.), even if you can't use the ggmap object directly as one normally would in ggmap(get_map(...)).

That's why I'd like to load a png (ideally, one I created with ggmap) into ggplot2 and use that as a map instead. How exactly can I do that?

I am aware that you can load background images in ggplot2 (see this stackoverflow question). But I'd also like to plot points on my map, so it's important that the latitude/longitude values are mapped correctly.



أكثر...
 
أعلى