I'm working on an internal charting package, based on the plots I created for our demographic/ adult health profiles.
This seems to involve a ton of boiler plate ggplot2 code and there must be someone, somewhere who has done something similar.
If so, please point me in that direction so I can think how best to structure the code
Note - this is not related to themes etc.
It's more the basics such a line chart template, a column chart template etc.
@johnmackintosh Probably not an actual answer to your question:
I have been down paths of creating custom plots with lots of arguments. It got painful quickly, as it diverged from what people already understood with {ggplot2}.
Instead I created a few custom geoms/stats, then it was just a case of telling people:
"You know ggplot. Here are our in-house custom geoms. Facets and everything else work the same. Go for it!"