# this is what happens for a chunk like this
# <>=
hook_plot_tex("foo-bar-plot.pdf", opts_chunk$merge(list(fig.align = "right")))
# <>=
hook_plot_tex("bar.tikz", opts_chunk$merge(list(dev = "tikz")))
# <>=
# 5 plots are generated in this chunk
hook_plot_tex("foo5.pdf", opts_chunk$merge(list(fig.show = "animate", interval = 0.1,
fig.cur = 5, fig.num = 5)))
Run the code above in your browser using DataLab