Changelog
Source:NEWS.md
usmap 0.6.3
CRAN release: 2023-10-21
Released Saturday, October 21, 2023.
- Update package author email and website.
usmap 0.6.0
CRAN release: 2022-02-27
Released Sunday, February 27, 2022.
Improvements
- Improve map resolution.
- More polygons are shown, this has a marginal increase on the data set file sizes but it is negligible.
- Add shape file update history, see Issue #30.
- Extract map data frame to external usmapdata package to reduce
usmap
package size, see Issue #39.- All existing functions (including
us_map()
) should continue to work as usual.
- All existing functions (including
- Add data format examples for
plot_usmap
to “Mapping” vignette, see Issue #42.
Bug Fixes
- Fix CRS warnings, see Issue #40.
- Fix
plot_usmap()
issue when provided data has"values"
column, see Issue #48 and this Stack Overflow question.
usmap 0.5.2
CRAN release: 2021-01-21
Released Wednesday, October 7, 2020.
- Update links in documentation.
usmap 0.5.1
CRAN release: 2020-10-07
Released Wednesday, October 7, 2020.
- New website for the package: https://usmap.dev
- Lightweight landing page containing useful information, links, and examples of usmap usage.
-
state
can now be omitted when usingfips()
. In this case, all available FIPS codes are returned, sorted by state abbreviation, see Issue #28. -
fips
can now be omitted when usingfips_info()
. In this case, all available states are returned, sorted by state abbreviation, see Issue #28. - Fix duplicate coordinates from being removed during
usmap_transform
(if value columns differ), see Issue #32. - Prevent warnings introduced by
ggplot2
v3.3.0, see Issue #35. - Set minimum R version to 3.5.0. Versions lower than this do not support the latest version of the
rgdal
package.
usmap 0.5.0
CRAN release: 2019-09-12
Released Friday, September 13, 2019.
New Features
- Ability to include county name labels on county maps, see Issue #14.
- They currently work the same as state labels except they include the full county name (excluding the word “County”).
- Ability to pass
ggplot2::geom_polygon()
parameters toplot_usmap()
, see Issue #15.- This is a breaking change and removes the
lines
parameter. The previous defaults ofcolor="black"
,fill="white"
, andsize=0.4
are maintained and will be used for any of those parameters that are omitted. - Refer to the
ggplot2::geom_polygon()
documentation for more information. - The following aesthetics are supported:
alpha
,colour
/color
,fill
,linetype
,size
- This feature provides more direct control over the appearance of plots.
- This is a breaking change and removes the
- Ability to exclude counties and states with new
exclude
parameter inus_map
,map_with_data
, andplot_usmap
, see Issue #19. - New function (
usmap_transform
) to transform longitude/latitude point data frames into coordinate reference system that matches the plotted map, see Issue #21.- Also includes
usmap_crs()
to easily access the coordinate reference system used by the package.
- Also includes
Improvements
- In the data frames provided by
us_map()
,long
andlat
have been renamed tox
andy
, respectively, see Issue #16.- This should not affect the behavior of
plot_usmap()
but will be a breaking change for any code that relies onus_map()
.
- This should not affect the behavior of
- Added contributing guidelines and templates, see Issue #24.
- These can be see in the .github folder.
usmap 0.4.0
CRAN release: 2018-09-16
Released Sunday, September 16, 2018.
New Features
- Ability to include state abbreviation labels in state maps, see Issue #9.
- e.g.
plot_usmap(labels = TRUE)
- e.g.
- Add US Census Bureau regional divisions as constants for quick plotting of certain regions.
- e.g.
plot_usmap(include = .northeast_region)
- The provided regions and divisions can be seen on this map by the US Census Bureau.
- e.g.
- Allow ability to include only certain states while viewing county map, see Issue #11.
- e.g.
us_map("counties", include = "TX")
orplot_usmap("counties", include = c("AZ", "NM"))
- e.g.
Improvements
- Vectorize counties in
fips
, see Issue #10.- e.g.
fips("NJ", c("Bergen", "Hudson"))
- e.g.
- Allow all columns in the data frame that’s passed to
map_with_data()
orplot_usmap()
to be preserved.
usmap 0.3.0
CRAN release: 2018-06-03
Released Sunday, June 3, 2018.
Improvements
- Update shape files to 2017 versions.
- Improvements to
fips
andfips_info
:- Vectorization support (e.g. enter multiple states in
fips
to receive a vector of corresponding FIPS codes) - e.g.
fips(c("AK", "AL"))
orfips(c("Alaska", "Alabama"))
- Mixed abbreviations and full names are also supported:
fips(c("AK", "Alabama"))
- Improved warning and error messages.
- Vectorization support (e.g. enter multiple states in
- Allow data to be specified by state abbreviation or full name in
plot_usmap
andmap_with_data
(instead of just by FIPS code).- The data frame passed to
plot_usmap
ormap_with_data
(via thedata =
parameter), can now be a two column data frame with columns “fips” and “values” or “state” and “values”.
- The data frame passed to