hook_plot_htmlsubfig {Pmisc} | R Documentation |
Hooks for including in knitr documents
hook_plot_htmlsubfig(x, options) hook_plot_beamer(x, options) hook_plot_margins(before, options, envir)
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)