Open jonocarroll opened 7 years ago
You won't be able to specify axis limits twice..., therefore, the xlim and ylim in the coord_sf function affects the functionality of facet_zoom
I haven't looked at this for a while, but that makes sense - is there a better way to do the zoom, or does this need something like inherit.aes = FALSE
?
Similar but different to #56. With
geom_sf()
on its way toggplot2
it would be great to have projection-awarefacet_zoom
ing. Part of this would likely require that the original and zoomed panels not necessarily be the same height/width, in order to maintain projections. For example, it would be great to be able to zoom a region of a mapAttempting to do similar with the
sf
branch ofggplot2
just produces the unzoomed map in both panels and seems to miss the zoom highlight, though it certainly looks neater.This has potential to look really awesome if the unzoomed panel could have its height adjusted to maintain projection (width can currently be somewhat manually adjusted via
zoom.size
) and if the subsetting was compatible with thesf
features (appropriate highlight/zoom).I know it's a dev feature, so this is just 'down the track' thinking.