World map with ggmap

EDIT: Updated to ggplot2 v 0.9.3 I tried something similar recenty but with little success. However, there are a number of ways to centre a world map from the map package: see here, here, and here. Using code from the latter, here’s an example that centers the world map on longitude 160, plots CRAN mirror … Read more

get_map not passing the API key (HTTP status was ‘403 Forbidden’)

You need to use register_google(key = “…”) in every new session of R. Using api_key = inside the get_map() call does not work. updated: 2018-12-24 for ggmap 2.7.904 and current Google Cloud API Step-by-Step Tutorial 1. Update to newest version of ggmap require(devtools) devtools::install_github(“dkahle/ggmap”, ref = “tidyup”) 2. Activate your Google API key for all … Read more

ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto

I ran into this problem as well today, and I had to install the GitHub development versions of ggplot2 and ggmap and restart R to get rid of this error: devtools::install_github(“dkahle/ggmap”) devtools::install_github(“hadley/ggplot2”) Before that, I also reinstalled all of the packages mentioned here: https://github.com/thomasp85/ggraph/issues/10 Don’t know if those reinstalls were necessary, as it was ultimately … Read more