🗺 Create US maps including Alaska and Hawaii in R
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.Full Changelog: https://github.com/pdil/usmap/compare/v0.7.0...v0.7.1
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.usmapdata::fips_data()
.
usmapdata
.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.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.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()
.