I am trying to use the RgoogleMaps package in R. I am running R version 3.1.0 on Windows Server 2008. No matter what I try to plot, I keep getting just a blank plot. I have tried writing out to external devices such as pdf or png with no luck. Here is an example:
BrooklynMap <- GetMap(center="Brooklyn", zoom=13)
PlotOnStaticMap(BrooklynMap)
This plots just find on my laptop, but it just gives a blank plot on my Windows Server 2008 machine. I have also tried to use the ggmap package with the following code:
mapImageData3 <- get_map(location = c(lon = -0.016179, lat = 51.538525),
color = "color",
source = "google",
maptype = "roadmap",
zoom = 16)
ggmap(mapImageData3,
extent = "device",
ylab = "Latitude",
xlab = "Longitude")
Again, this works on my laptop but produces just a blank plot on Windows Server 2008.
Can anyone provide guidance as to what might be causing this?
Thank you, Sam