-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add map layout function #137
Comments
I was thinking about this recently. The vast majority of the code in the I believe only three sections of finalize currently presume the
Addressing the first two would be fairly trivial. Seems to me that the best way to tackle this enhancement will to build other In my mind, implementing support for other packages seems dependent on the ability to easily convert these objects to grobs for drawing with grid. This should be easy for tmaps due to I am curious if we'll want map-equivalents of |
Assuming we support tmap, I imagine at the very least it would be useful to create a |
right. Maybe it makes sense to start by supporting just one map package and implement both theming and a modified finalize_plot together. I wonder if there is interest in supporting ggplot2 maps, as you referenced in the OP? That would throw in a bit of a monkey wrench, as it might require an independent ggplot2 theme function distinct from the current |
One of the longer-term goals for cmapplot is to support maps instead of just charts. While the
finalize_plot()
function can be used for ggplot-based maps as currently coded (see example PDF), this layout has not been reviewed by Comms, and certainly does not match the ON TO 2050 map design templates (which may or may not still be Comms' preferred layout). ON TO 2050 templates and documentation are located in S:\Library\edocuments\Communications\MAP templatesWhile the ability to support map packages beyond
ggplot2::geom_sf()
is an eventual goal, it seems like a near-term improvement would be to add either alayout="map"
parameter tofinalize_plot()
or to create a separatefinalize_map()
function. I have not given much thought yet to pros/cons either way. Whatever we do, we should be reasonably certain up front that it will play nicely with output from different map packages (ggplot, tmap, mapsf).The text was updated successfully, but these errors were encountered: