hook_plot_htmlsubfig | R Documentation |
Hooks for including in knitr documents
hook_plot_htmlsubfig(x, options)
hook_plot_beamer(x, options)
hook_plot_margins(before, options, envir)
hook_plot_array(x, options)
x |
see |
options |
see |
before |
see |
envir |
see |
hook_plot_beamer
produces multi-plot figures in columns for beamer documents
hook_plot_htmlsubfig
produces multi-plot figures in pipe tables for markdown documents
hook_plot_margins
sets small plot margins, which must be set as a hook named margins
. The margins
option
in a chunk is an integer which scales the size of the margins.
## Not run: knit_hooks$set(plot=Pmisc::hook_plot_beamer)
## Not run: knit_hooks$set(plot=Pmisc::hook_plot_htmlsubfig)
## Not run: knit_hooks$set(margins = Pmisc::hook_plot_margins)
## Not run: opts_chunk$set(margins=1, fig.width=5, fig.height=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.