
Drop-in replacements for geom_col(), geom_line(), and geom_point()
Source:R/ct-wrappers.R
ct_geoms.RdThree-line pass-throughs that ship consulting-grade defaults for
ggplot2::geom_col() width, ggplot2::geom_line() linewidth, and
ggplot2::geom_point() size. Use them when you want the defaults
baked into the call site; plain geom_line() will also pick up
linewidth from ct_theme() / theme_strategy() via from_theme(),
and geom_point() size is autoloaded by ct_set_defaults().
Value
A ggplot2 ggplot2::layer() object.
Bar charts with Date x
ct_col()'s default width = 0.8 is in x-axis units. On a Date
x-axis that is 0.8 days, which renders bars as slivers when the
data is spaced quarterly or monthly. For bar charts, convert the
x variable to either an ordered factor (e.g. "21Q1", "21Q2", ...)
or a numeric index before plotting; line charts on Date are fine.