- Change
lato_install()
tolato_import()
and uselibrary(systemfonts)
to resolve issues across operating systems. - Set default color (
"white"
) and size (0.1
) forgeom_sf()
. - Deprecate
lato_install()
as the function name was misleading. Users have to manually install Lato on their computer first before importing the font into R withlato_import()
. - Add helpful error message when there are more than 8 groups for
fill
andcolor
operations. - Add
urbn_save()
function to export images in some default small, medium, and large sizes which will work well in Urban publications. - Move
geom_*()
defaults from geoms.R toggplot2::update_geom_defaults()
inset_urbn_defaults()
. If you want to set size to be an aesthetic mapping say ingeom_point()
, you no longer need to callggplot2::geom_point()
. Now you can just usegeom_point()
fromlibrary(ggplot2)
for everything. - Fixed an error with
urbn_geofact()
so it works withlibrary(geofacet)
. - Updated documentation to clarify functions.
- Overwrote
scale_*_ordinal()
to use Urban Institute colors.
- Add global options for
scale_continuous_colour()
andggplot2.continuous.fill()
to set the palettes to "gradient" instead of "viridis" - Add
scale_fill_ordinal()
andscale_colour_ordinal()
because ordered factors now have different scale functions.
- All syntax that included "urban" has been switched to "urbn". This will be the default for any R packages made at the Urban Institute.
colors.R
contains elevenpalette_urbn_*
vectors. More information is available in the Urban Institute Data Visualization Style Guide.palette_urbn_main
is the eight color discrete palette of the Urban Institute with cyan, yellow, black, gray, magenta, green, space gray, and red.palette_urbn_diverging
is an eight color diverging palette.palette_urbn_quintile
is a five color blue palette that is good for quintiles.palette_urbn_politics
is a two color palette with blue for Democrats and red for Republicans.palette_urbn_cyan
palette_urbn_gray
palette_urbn_yellow
palette_urbn_magenta
palette_urbn_green
palette_urbn_spacegray
palette_urbn_red