usmapdata 0.4.0
New Features
- Add
data_yearparameter tous_map(), see Issue #34.- Allows user to select the year for which to plot US map.
- This will allow the user to match the map that is provided to the data they are using.
- To start with, 2021, 2022, and 2023 maps are included.
- Going forward, each year will be added to the package and previous years can be accessed with this parameter.
- If the value provided via
data_yearis not available, the package will select the next year for which data exists.- For example, if data sets 2022 and 2023 are available and the user calls
us_map(data_year = 2019), 2022 will be used. - A warning is presented when this occurs to alert the user.
- For example, if data sets 2022 and 2023 are available and the user calls
- Further reading on the impetus for this change: major changes made to Connecticut counties in 2023.
- The old Connecticut counties are available in the 2021 data, 2022 and forward use the new planning regions.
Improvements
- Improve python script and GitHub Actions workflow that download and process map shapefiles to be more flexible and support new
data_yearfeature listed above. centroid_labels()now accepts"state"and"county"as inputs for theregionsparameter likeus_map()andfips_data().- Update package author email.
Full Changelog: v0.3.0...v0.4.0