41.6 Not so code-y process

41.6.1 Quick and dirty way to look at your data

# install.packages("rpivotTable")
library(rpivotTable)

# Works best in HTML output; drag-and-drop just like Excel PivotTables
rpivotTable(
  data = tx,
  rows = "city",
  cols = "year",
  vals = "sales",
  aggregatorName = "Sum",
  rendererName = "Heatmap"
)

41.6.2 Code generation and wrangling (visual)

# install.packages("esquisse")
library(esquisse)
# Launch the GUI to build ggplots and dplyr pipelines interactively
esquisse::esquisser(tx)