12.1 Tidy Evaluation

Tidy evaluation is used throughout the tidyverse to make interactive data exploration more fluid, but it comes with a cost: it’s hard to refer to variables indirectly, and hence harder to program with.

In this chapter, you’ll learn how to wrap ggplot2 and dplyr functions in a Shiny app. The techniques for wrapping ggplot2 and dplyr functions in a functions and package, are a a little different and covered in other resources like Using ggplot2 in packages or Programming with dplyr.

library(shiny)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)