When I run the code from the accepted answer ( Graphic coordinates on the map ), I get the following error message the first time I run it after installing ggmap:
which gives an error:
Error: GeomRasterAnn was created with an incompatible version of ggproto. Reinstall the package that this extension provides.
I tried to install ggproto, but the error:
> Warning in install.packages : package 'ggproto' is not available (for R version 3.3.2)
On subsequent attempts, the error:
Error: ggplot2 does not know how to handle ggmap / raster class data
I can build the image using:
plot(mapgilbert)
I tried:
map2 <- get_map("Rotorua", zoom = 16) ggmap(data = map2)
who returned the following error message:
Error: ggplot2 does not know how to handle ggmap / raster class data
I just donβt know R well enough to find out where to look for a solution to a solution - they provided updates for all packages.
source share