-
-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Paolo Di Lorenzo edited this page Aug 18, 2019
·
33 revisions
Click on a link below for more information.
-
Merge data with map for plottingInclude vignette with example plots
- Include more map projections
- Replace data frame names
lat
andlong
with something else since they don't really represent latitude and longitude (for non-Mercator projections)- Perhaps
x
andy
should be sufficient
- Perhaps
- Allow specifying whether data values are discrete or continuous, i.e.
plot_usmap(data = df, ..., value.type = c("continuous", "discrete"))
- Standardize function names since
usmap
's API is intended to be small, lightweight, and easy to navigate.- For example:
usmap_data
,usmap_plot
,usmap_join
,usmap_fips
,usmap_fips_info
, etc.
- For example:
Add vectorized version offips(…)
- Implement specific
usmap
class (or similar name) for greater functionality (extending S3 methods from other packages). Add ability to exclude certain states/counties from the map (opposite ofinclude
).
us_map(exclude = c("Alaska", "Hawaii")) # you monster!
-
Standardized built-in sets of states for inclusion/exclusion.For example:
# Built-in
new_england <- c("Connecticut", "Maine", "Massachusetts", "New Hampshire", "Rhode Island", "Vermont")
west_coast <- c("California", "Oregon", "Washington")
four_corners <- c("Arizona", "Colorado", "New Mexico", "Utah")
# --------
us_map(include = new_england)
Including/excluding states should work for county maps too