GitHunt
YJ

yjunechoe/ggplot2-layer-explorer

Shiny app to explore ggplot2's layer-building pipeline

ggplot2 layer explorer

An R Shiny app that exposes {ggplot2}'s internal layer-building pipeline, allowing you to see and touch a layer's data as it flows through each processing stage.

Designed for both {ggplot2} users and extension developers.

๐Ÿš€ Live app: https://yjunechoe.github.io/ggplot2-layer-explorer/

App Demo

Usage

Learn how the grammar of graphics is implemented under the hood with two workflows:

  • Inspect the internal data transformation pipeline of plot layers
  • Highjack the layer data to see how modifications affect the final plot

Read more in about.md.

Installation

To run the app locally, clone this repository:

git clone https://github.com/yjunechoe/ggplot2-layer-explorer.git
cd ggplot2-layer-explorer

Install dependencies (listed in DESCRIPTION) and the companion package {ggtrace}:

# Install app dependencies
remotes::install_deps()

# Install ggtrace from GitHub
remotes::install_github("yjunechoe/ggtrace")

Run the app:

shiny::runApp()

Package: ggtrace

Paper: Sub-layer Modularity in the Grammar of Graphics

Talks: JSM 2023, rstudioconf 2022, useR! 2022

Languages

R80.8%HTML19.2%

Contributors

Created April 12, 2025
Updated October 23, 2025
yjunechoe/ggplot2-layer-explorer | GitHunt