Vorrei creare una mappa che non sia perfettamente quadrata ma rettangolare e sia la dimensione che detta.ggmap che modifica la dimensione della mappa
require(ggmap)
tenmile <- get_map(location = c(lon = -122.486328, lat = 48.862813),
color = "color",
source = "google",
maptype = "roadmap",
zoom = 12)
tenmile.map <- ggmap(tenmile,
extent = "device",
ylab = "Latitude",
xlab = "Longitude")+ggtitle("GEOMean for Data from Oct 2013-Nov 2014")
tenmile.map + geom_point(data=pp, aes(x=lon, y=lat, size=geomean), color="red", alpha=0.5) +
geom_text(data=pp, aes(x=lon, y=lat, label = site), size=3, vjust = 1.25, hjust = -0.1)
vorrei postare foto di quello che ho e quello che voglio, ma non ho abbastanza punti reputazione per pubblicare le immagini. = - (
Sembra che ggmap non [esegua mappe non quadrate] (http://stackoverflow.com/questions/19438316/r-ggmap-why-can-i-create-rectangular-maps-using-the- nomefile-attributo-ma-non), ma forse puoi ottenere una mappa più grande, [ritaglia l'immagine] (http://www.image.ucar.edu/~nychka/Fields/Help/image2lz.html) e [usa come sfondo] (http://stackoverflow.com/questions/12918367/in-r-how-to-plot-with-a-png-as-background). Immagino che sarà doloroso allineare le coordinate, [forse qui] (https://github.com/hadley/ggplot2/wiki/Crime-in-Downtown-Houston,-Texas-%3a-Combining-ggplot2 -e-Google-Maps). – andybega