hook_plot_htmlsubfig: Hooks for knitr

View source: R/knitrHooks.R

hook_plot_htmlsubfigR Documentation

Hooks for knitr

Description

Hooks for including in knitr documents

Usage

hook_plot_htmlsubfig(x, options)

hook_plot_beamer(x, options)

hook_plot_margins(before, options, envir)

hook_plot_array(x, options)

Arguments

x

see hook_pdfcrop

options

see hook_pdfcrop

before

see hook_pdfcrop

envir

see hook_pdfcrop

Details

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.

Examples

## 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)


Pmisc documentation built on Feb. 14, 2024, 3 a.m.