Skip to contents

Themes

Composable theme builder and archetype presets.

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_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