use_afcharts will use the theme base_size to set geom defaults (e.g. the default linewidth for geom_hline). However, as these properties are not part of the theme they can not be overwritten by theme_af.
library(ggplot2)
library(afcharts)
# base_size argument of
use_afcharts(base_size = 40)
ggplot() +
geom_hline(aes(yintercept = 4.187))
use_afcharts(base_size = 10)
ggplot() +
geom_hline(aes(yintercept = 4.187))
# base_size argument of theme_af doesn't impact linewith
ggplot() +
geom_hline(aes(yintercept = 4.187)) +
theme_af(base_size = 40)
We could
- Leave this as is
- Use a different argument name for setting geom defaults
- Update the geom defaults to fix them to a particular size, unrelated to the base_size
use_afcharts will use the theme base_size to set geom defaults (e.g. the default linewidth for geom_hline). However, as these properties are not part of the theme they can not be overwritten by theme_af.
We could