25.19 Summary
In this chapter we learned how to write functions for three useful scenarios: creating a vector, creating a data frames, or creating a plot.
To learn more about programming with tidy evaluation, see useful recipes in programming with dplyr; and programming with tidyr; learn more about the theory in What is data-masking and why do I need
To learn more about reducing duplication in your ggplot2 code, read the Programming with ggplot2 chapter of the ggplot2 book.
For more advice on function style, see the tidyverse style guide