View source: R/insert_figure.R
insert_figure | R Documentation |
Wraps knitr::include_graphics()
to easily access my custom directory
structure for paper writing'
insert_figure(
stem,
type = dplyr::if_else(knitr::is_latex_output(), "pdf", "png"),
base = "figures"
)
stem |
Character. Basename of figure, without extension. |
type |
Character. Format of the file. Defaults to knitr and dplyr logic. |
base |
Character. Defaults to my usual structure of having a top-level folder for figures, abbreviated |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.