Package: ggtrace 0.7.7

ggtrace: Programmatically explore, debug, and manipulate ggplot internals

Programmatically explore, debug, and manipulate ggplot internals. Package ggtrace offers a low-level interface that extends base R capabilities of trace, as well as a family of workflow functions that make interactions with ggplot internals more accessible.

Authors:June Choe [aut, cre]

ggtrace_0.7.7.tar.gz
ggtrace_0.7.7.zip(r-4.7)ggtrace_0.7.7.zip(r-4.6)ggtrace_0.7.7.zip(r-4.5)
ggtrace_0.7.7.tgz(r-4.6-any)ggtrace_0.7.7.tgz(r-4.5-any)
ggtrace_0.7.7.tar.gz(r-4.7-any)ggtrace_0.7.7.tar.gz(r-4.6-any)
ggtrace_0.7.7.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ggtrace/json (API)

# Install 'ggtrace' in R:
install.packages('ggtrace', repos = c('https://yjunechoe.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yjunechoe/ggtrace/issues

Pkgdown/docs site:https://yjunechoe.github.io

On CRAN:

Conda:

debuggingggplot2metaprogramming

6.61 score 61 stars 67 scripts 254 downloads 50 exports 2 dependencies

Last updated from:d608506b79. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK214
source / vignettesOK194
linux-release-x86_64OK173
macos-release-arm64OK128
macos-oldrel-arm64OK110
windows-develOK153
windows-releaseOK138
windows-oldrelOK113
wasm-releaseOK111

Exports:.layer_iscapture_envcapture_fnclear_global_ggtraceclear_last_ggtraceget_methodget_method_inheritanceggbodyggdebugggdebugonceggdraw_silentggeditggformalsggtraceggtrace_capture_envggtrace_capture_fnggtrace_highjack_argsggtrace_highjack_returnggtrace_inspect_argsggtrace_inspect_nggtrace_inspect_on_errorggtrace_inspect_returnggtrace_inspect_varsggtrace_inspect_whichggundebuggguntraceglobal_ggtraceglobal_ggtrace_offglobal_ggtrace_onglobal_ggtrace_statehighjack_argshighjack_returninspect_argsinspect_ninspect_on_errorinspect_returninspect_varsinspect_whichis_tracedlast_ggtracelast_layer_errorcontextlast_sublayer_errorcontextlayer_after_scalelayer_after_statlayer_before_geomlayer_before_statlayer_isset_global_ggtraceset_last_ggtracewith_ggtrace

Dependencies:clirlang

Examples gallery
Highjack layer data | Debug complex aes() expressions | Inspect sub-layer data | Intervene with surgical precision | Highjack the drawing context

Last update: 2025-10-22
Started: 2025-05-16

Frequently asked questions
Is ggtrace() safe? | What can you ggtrace()? | Functions | ggproto methods | R6 methods | What can't you ggtrace()? | How can I save a modified ggplot?

Last update: 2025-06-17
Started: 2021-10-27

Pedagogical Philosophy
Stage 1 (experienced user) | Stage 2 (curious user) | Stage 3 (aspiring developer) | Stage 4 (developer) | Stage 5 (contributor)

Last update: 2025-05-16
Started: 2025-05-16

Workflow functions
Workflows for interacting with ggplot internals | A walkthrough with geom_smooth() | Inspect | Capture | Highjack

Last update: 2025-05-16
Started: 2025-05-15

Extending trace()
Extending base::trace() with ggtrace()

Last update: 2025-05-16
Started: 2025-05-15