20  Gallery

This chapter is the recipe book. Every section pairs a plain ggplot2 (or extension-package) graphic an analyst would actually write — shown as real, evaluated output — with the ptr_app() formula that exposes its knobs, shown verbatim with a screenshot of the running app. The originals run as ordinary R at render time; the app versions are bound to tested fixtures like everywhere else in this book.

The custom placeholders used along the way (ppRange, ppVars, ppPercent) are defined inline so every example is self-contained; Chapter 6 explains the constructor machinery behind them.

# Packages used by this chapter's examples, beyond ggpaintr + ggplot2:
library(dplyr); library(tidyr); library(purrr); library(broom)
library(palmerpenguins); library(plotly); library(ggiraph)
library(ggpcp); library(GGally); library(ggridges); library(ggrepel)
library(ggalluvial); library(ggdist)