Skip to content
Paolo Di Lorenzo edited this page Aug 18, 2019 · 33 revisions

usmap wiki

Click on a link below for more information.

Ideas

  • Merge data with map for plotting
    • Include vignette with example plots
  • Include more map projections
  • Replace data frame names lat and long with something else since they don't really represent latitude and longitude (for non-Mercator projections)
    • Perhaps x and y should be sufficient
  • 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.
  • Add vectorized version of fips(…)
  • 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 of include).
  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
Clone this wiki locally