Plotting google map with ggplot in R
Is this what you're after. It uses the ggmap
package, which simplifies the process. See ?get_map
and ?ggmap
for further options. An excellent resource is available in The R Journal
library(ggmap)al1 = get_map(location = c(lon = -86.304474, lat = 32.362563), zoom = 11, maptype = 'roadmap')al1MAP = ggmap(al1)al1MAP