dkahle / ggmap

A package for plotting maps in R with ggplot2
763 stars 231 forks source link

ggmap() + facet_wrap(scales = "free") #363

Open mhollanders opened 1 month ago

mhollanders commented 1 month ago

Hi,

I noticed that it's not possible to facet_wrap() a ggmap() object with free scales, so that each facet is essentially "zoomed in" on the relevant part of the map. In my use case, this is relevant for wanting to show spatial locations of sites nested within disparate regions. Is it possible to include this feature in ggmap, or otherwise, are there any workarounds? The issue I'm running into with get_stadiamap() is that I don't know how to create square maps. If I could somehow fix the aspect ratio of each map, I could use patchwork or similar to make a combined plot.

Thanks!

Matt