library(knitr) knit_hooks$set(figasaur = stegasaur::hook_figasaur)
Here we show that when we make the figure we can read it back in and get the code that generated it back.
plot(sample(100))
We could now use stegasaur::decode
on the resulting file to find out how the figure was created (this should display plot(sample(100))
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.