add_image | R Documentation |
Add images which are not auto-generated during the knitting process to all publishing formats. Images can now be saved in any format compatible with Whitehall Publisher (png or svg), and with any meaningful file name.
add_image(file_name, folder = "graphs")
file_name |
string giving the file name of the image (either png or svg) |
folder |
string giving the directory the image is stored in, defaults to "graphs". |
A plain text string which embeds the specified image into any output format
## Not run:
##Image in default folder (graphs)
add_image("rail_usage_infographic.svg")
##Image in different folder
add_image("rail_usage_infographic.svg", folder = "img")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.