
Package index
-
ct_theme()experimental - Build a consulting-grade ggplot2 theme
-
theme_strategy() - Strategy archetype theme
-
theme_finance() - Finance archetype theme
-
theme_editorial() - Editorial archetype theme
Scales and palettes
Discrete and continuous colour/fill scales backed by ggconsulting palettes, plus a swatch preview helper.
-
scale_color_ct()scale_colour_ct()scale_fill_ct()scale_color_ct_c()scale_colour_ct_c()scale_fill_ct_c()experimental - Consulting colour and fill scales
-
ct_palette()experimental - Get palette colours
-
ct_palette_show() - Preview ggconsulting palettes as a swatch
Data-aware polish
ct_finish() runs after the geom layer is built and inspects the plot to inject value labels, sorting, highlighting, end labels, and scale expansion.
-
ct_finish()experimental - Apply data-aware finishing touches to a plot
Geom wrappers
Drop-in replacements for ggplot2::geom_col(), geom_line(), and geom_point() with consulting-grade defaults baked in at the call site.
-
ct_col()ct_line()ct_point() - Drop-in replacements for geom_col(), geom_line(), and geom_point()
Locale and formatters
Locale-aware number, currency, percentage, and date formatters, plus a session-scoped locale switch.
-
ct_locale() - Set the active ggconsulting locale
-
fmt_number()fmt_brl()fmt_currency()fmt_pct()fmt_delta()fmt_month() - Locale-aware label formatters
Defaults
Aesthetic defaults applied on library attach via ggplot2::update_geom_defaults(), with an opt-out path.
-
ct_set_defaults()ct_unset_defaults() - Set or restore ggconsulting aesthetic defaults
-
install_consulting_fonts() - Install consulting fonts from Google Fonts
-
has_font() - Test whether a font family is available
-
bu_quarterly - Quarterly P&L for a fictional Brazilian conglomerate
-
market_share - Annual market share for a fictional sector
-
client_nps - Quarterly NPS by client segment
-
ebitda_bridge - FY23 to FY24 EBITDA bridge
-
ibov_sectors - Monthly B3 sector indices
-
br_macro - Brazilian macroeconomic indicators (monthly)