ggmap looks like an excellent package, based on a paper published by David Kahle and Hadley Wickham, "ggmap: Spatial Visualization with ggplot2", The R Journal Vol. 5/1, June 2013, https://journal.r-project.org/archive/2013-1/kahle-wickham.pdf I am using the code published in this article to learn about the package and compare it to RShiny leaflet maps. I started two lines of code on the second page of the article in pdf format, just above Figure 2. There is no formal list of library() requirements, so I used the two most obvious:
library(ggplot2)
library(ggmap)
murder <- subset(crime, offense == "murder")
qmplot(lon, lat, data=murder, colour=I('red'),
size=I(3), darken = 0.3)
The error (in red) followed immediately:
Using zoom = 11... Error: GeomRasterAnn was built with an incompatible version of ggproto. Please reinstall the package that provides this extension.
This looks like a more serious problem than missing a package request, but I may have missed something. Searches using this error statement are not providing any solutions that helped for my case. I have updated all of my R packages, and nothing changed.