-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for new ggplot2 #86
Comments
A alternative solution, though a little more work, would be to implement an actual child geom for each geom you need, override the Though thinking this through there will likely be issues with plot limits. Not sure off the top of my head what would be the best way to address those. We'd need the ability for certain layers to be excluded from limit calculations, and I don't think there's an easy way to do this at this time. I think the solution with |
Sorry for the silence, here...moving houses meant a sparse internet situation. I agree there's no generic workaround. However, my |
Correcting myself...your point about scale training is a good one. The xmin/xmax/ymin/ymax is going to be all off. This is also used for plotting rasters and might not work at all if xmin/xmax/ymin/ymax have to be plate carree (pivoting extents through lon/lat will always be problematic). |
Yeah, I think this would be the best approach. It can also handle limits properly, as long as you implement appropriate limit hints: |
Ah yeah! That'll work perfectly for both raster and non-raster versions of this. |
The forthcoming release of ggplot2 will treat coordinates for non-sf geoms as WGS84 longitude/latitude. This means all
geom_spatial_*()
functions will stop working, as they exploit the previous behaviour (non-sf geom coords are in the CRS of coord_sf). See tidyverse/ggplot2#4494 .The simplest workaround might be to have the
geom_spatial_*()
functions returnlist(Geom, coord_sf(..., default_crs = NULL)
. This would also be an opportunity to fix #60.The text was updated successfully, but these errors were encountered: