This function dynamically produces a knitr chunk with appropriate captions and labels which is then knitted into the main document with cat. Any chunk option could be added for full control over chunk.
1 |
chunkLabel |
text for chunk label which is also used for figure file name |
capt |
text for caption |
plt |
plot object to be placed |
pos |
latex option for keeping the plot here |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.