Chapter 10 Function factories

Learning objectives:

  • Understand what a function factory is
  • Recognise how function factories work
  • Learn about non-obvious combination of function features
  • Generate a family of functions from data
library(rlang)
library(ggplot2)
library(scales)