I know there are already at least two threads on this topic from several years ago, but I wonder if there have been any changes over the years that make new answers possible?:
- Facet with free scales but keep aspect ratio fixed (9 years ago),
- Mapping different states with geom_sf using facet wrap and scales free (5 years ago).
The question is: is it finally possible to make a facetted plot with free scale (to zoom on each single element) keeping axis-ratio fixed (in my case using coord_quickmap)?
Both these threads don't answers the question, or they just suggest using tmap instead of ggplot... But the point is: is there a way to go on with ggpot?
I tried two different ways to go on:
- keeping aspect ratio but unable to zoom on each feature
lomb_prov <- read.csv("lomb_prov.csv")
ggplot(lomb_prov, aes(x = x, y = y)) +
geom_tile(fill = "light grey") +
facet_wrap(~ provincia) +
coord_quickmap()
- setting
scales = "free
I'm able to zoom to each feature in facets but aspect ratio is lost
ggplot(lomb_prov, aes(x = x, y = y)) +
geom_tile(fill = "light grey") +
facet_wrap(~ provincia, scales = "free") +
coord_quickmap()
The outcame i would like to achive is to keep aspect ratio (like first plot) and zoom on each single province (like second plot). So, anyone is able to suggest a way to combine both?
Waiting for kind suggestions, thank you!
ATTACHED FILE: https://drive.google.com/file/d/12bN8y22-AY2prsFq4VEHcdbqKZ6z4XEL/view?usp=sharing