Description Usage Arguments Value
Create a debug version of the given Stat by creating a new Stat which directly inherits from the original Stat. Then for each named method, rewrite the method body to capture arguments and return values for each call.
1 2 3 4 | create_stat_with_caching(OriginalStat, methods = c("parameters",
"aesthetics", "setup_params", "setup_data", "compute_layer",
"compute_panel", "compute_group", "finish_layer"), verbose = FALSE,
head_n = 6)
|
OriginalStat |
Ggproto Stat object to debug. e.g. StatIdentity |
methods |
Methods within ggproto object to debug. Default: all methods |
verbose |
Print arguments and return values during ggplot build and render process. Default: FALSE |
head_n |
Argument to |
A subclass of the given Stat with each method modified to capture the argument list and return value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.