Key functions

theme_cmap()

Add CMAP theme to ggplot chart

finalize_plot()

Arrange and save CMAP ggplot chart

Additional geoms & auxiliary functions

geom_recessions()

Add recessions to time series graphs

geom_text_lastonly()

Text (Last Only)

apply_cmap_default_aes() unapply_cmap_default_aes()

Fetch and set aesthetic defaults

abbr_years()

Axis handling helper functions

Color palettes & gradients

viz_gradient() viz_palette() fetch_pal()

Visualizing CMAP color palettes

cmap_fill_continuous() cmap_color_continuous() cmap_colour_continuous()

Apply continuous CMAP palettes (gradients) to ggplot2 aesthetics

cmap_fill_discrete() cmap_color_discrete() cmap_colour_discrete()

Apply discrete CMAP palettes to ggplot2 aesthetics

cmap_fill_highlight() cmap_color_highlight() cmap_colour_highlight()

Highlight one or more discrete groups in a comparison graph

cmap_fill_race() cmap_color_race() cmap_colour_race()

Apply official CMAP race/ethnicity chart colors to ggplot2 aesthetics

Sample datasets

cluster_jobchange

Job change in CMAP region by cluster, 2001-17

economy_basic

Basic regional economic stats in 2001 and 2017

peer_grp

Gross Regional Product by region, with peers, 2001-17

grp_over_time

Gross Regional Product by cluster, 2007-17

percentile_wages

Wage percentiles by cluster

pop_and_laborforce_by_age

Population and Labor Force by Age

traded_emp_by_race

Traded employment by race

transit_ridership

Transit ridership in the Chicago region, 1980-2019

vehicle_ownership

Vehicle ownership in the CMAP seven county region

Lesser used objects

get_cmapplot_globals() get_cmapplot_global() set_cmapplot_global()

The cmapplot_globals environment

.lwd gg_lwd_convert()

Line width conversion

update_recessions()

Update recessions table

customproto GeomRecessions GeomRecessionsText GeomTextLast GeomPointLast

Custom ggproto classes