size
with linewidth
in plot_usmap()
documentation, see Issue #89.usmapdata
functions are used for data transformation (i.e. usmap_transform()
) values for consistency.
usmapdata 0.2.2
is now a required dependency because of this change.sf
-based map data file migration.
as_sf
parameter in usmapdata
function calls has been removed.usmapdata
functions in the future.Released Saturday, January 20, 2024.
This is a major new release for usmap
. The data has been modernized to be a simple features (sf
) object. This will allow for much greater flexibility in the type of data that can be portrayed on the US map. us_map()
, plot_usmap()
, and usmap_transform()
have been updated to work with these new formats. See the examples in the vignettes and README
for more information.
usmapdata 0.2.0
sf
-based map data files.
us_map()
is now returned as an sf
object instead of a standard data frame.usmap
functionality.usmap_transform()
in accordance with the sf
change mentioned above.
lat
/lon
columns with a single geometry
column with the transformed points and can be plotted using ggplot2::geom_sf()
.advanced-mapping
vignette for more details.usmap_transform()
now accepts sf
objects and automatically transforms its geometry
column to the projection used by this package.
usmap_transform()
before plotting with ggplot2::geom_sf()
, see Issue #12.crs
parameter.usrivers
dataset featuring major US rivers.
sf
object and is ready to be transformed with usmap_transform()
and plotted with plot_usmap() + ggplot2::geom_sf()
.abbr
) column to citypop
data set.plot_usmap()
warnings have been cleaned up, including a defunct warning that didn’t make sense.output_names
is no longer required as a parameter to usmap_transform()
.
usmap
.usmap_transform()
will output its transformation using the sf
default of "geometry"
as the column name.Released Monday, December 11, 2023.
usmapdata::fips_data()
.
usmapdata
.Released Saturday, October 21, 2023.
Released Tuesday, June 13, 2023.
maptools
and rgdal
with sp
and sf
, see Issue #57 and Issue #70.
Released Saturday, November 12, 2022.
plot_usmap
tests, see Issue #58.aes_string
and size
deprecation in ggplot2, see Issue #59.Released Sunday, February 27, 2022.
input_names
and output_names
parameters to usmap_transform
, see Issue #33.sortAndRemoveDuplicates
parameter to fips_info
, see Issue #47.
FALSE
) value changes existing behavior, to retain existing behavior, change the parameter value to TRUE
.usmap
package size, see Issue #39.
us_map()
) should continue to work as usual.plot_usmap
to “Mapping” vignette, see Issue #42.plot_usmap()
issue when provided data has "values"
column, see Issue #48 and this Stack Overflow question.Released Wednesday, October 7, 2020.
Released Wednesday, October 7, 2020.
state
can now be omitted when using fips()
. In this case, all available FIPS codes are returned, sorted by state abbreviation, see Issue #28.fips
can now be omitted when using fips_info()
. In this case, all available states are returned, sorted by state abbreviation, see Issue #28.usmap_transform
(if value columns differ), see Issue #32.ggplot2
v3.3.0, see Issue #35.rgdal
package.Released Friday, September 13, 2019.
ggplot2::geom_polygon()
parameters to plot_usmap()
, see Issue #15.
lines
parameter. The previous defaults of color="black"
, fill="white"
, and size=0.4
are maintained and will be used for any of those parameters that are omitted.ggplot2::geom_polygon()
documentation for more information.alpha
, colour
/color
, fill
, linetype
, size
exclude
parameter in us_map
, map_with_data
, and plot_usmap
, see Issue #19.usmap_transform
) to transform longitude/latitude point data frames into coordinate reference system that matches the plotted map, see Issue #21.
usmap_crs()
to easily access the coordinate reference system used by the package.us_map()
, long
and lat
have been renamed to x
and y
, respectively, see Issue #16.
plot_usmap()
but will be a breaking change for any code that relies on us_map()
.Released Sunday, September 16, 2018.
plot_usmap(labels = TRUE)
plot_usmap(include = .northeast_region)
us_map("counties", include = "TX")
or plot_usmap("counties", include = c("AZ", "NM"))
fips
, see Issue #10.
fips("NJ", c("Bergen", "Hudson"))
map_with_data()
or plot_usmap()
to be preserved.Released Sunday, June 3, 2018.
fips
and fips_info
:
fips
to receive a vector of corresponding FIPS codes)fips(c("AK", "AL"))
or fips(c("Alaska", "Alabama"))
fips(c("AK", "Alabama"))
plot_usmap
and map_with_data
(instead of just by FIPS code).
plot_usmap
or map_with_data
(via the data =
parameter), can now be a two column data frame with columns “fips” and “values” or “state” and “values”.Released Tuesday, August 15, 2017.
map_with_data
and plot_usmap
to contain FIPS codes with missing leading zeros.
numeric
from a .csv
file.Released Saturday, April 29, 2017.
map_with_data
function for adding user-defined data to map data.map_with_data
function).Released Sunday, January 29, 2017.
ggplot2
)