Add simultaneous plotting of counties and states #26
Labels
new feature
A new feature that adds functionality to the package
wontfix
A suggestion or bug report that has been rejected by the package maintainers
Milestone
Is your feature request related to a problem? Please describe.
There should be a way to plot both states and counties simultaneously. For example, plotting Alaska as a state with several Alaskan counties also outlined within them (possibly with different aesthetic features).
Describe the solution you'd like
This needs more thought but perhaps a boolean parameter to
plot_usmap
indicating that theinclude
/exclude
parameters that are states should be plotted as states and counties should be plotted as counties (instead of just following what is defined in theregions
parameter).Describe alternatives you've considered
Currently, the only way to achieve something like this is to create two separate
plot_usmap
objects (one for the states and one for counties) and then combine them by extracting the$layers[[1]]
object from theplot_usmap
object which is both not ideal and could be unreliable ifggplot2
behavior were to be changed in a future update.For example:
The text was updated successfully, but these errors were encountered: