Include figures with title and notes using a data base
include_figure(data = NULL, figure, caption = NA, notes = NA, label = NA)
data | Data frame with the figures information. See details. |
---|---|
figure | Name or path of the figure. |
caption | Manual figure caption (default = NA). |
notes | Manual figure notes (default = NA). |
label | Label for start the footnote (default = NA). |
Figure with caption and notes
The data frame information result from `info_figure` output.
library(inti) fig <- info_figure(caption = "caption test." , notes = "note test." , label = "_Source:_" , url = "https://devblackops.io/images/testing.jpg" , path = "man/figures/logo.png" ) # use this in r chunk `fig.caption = fig$caption` fig %>% include_figure()#> [1] "https://devblackops.io/images/testing.jpg" #> attr(,"class") #> [1] "knit_image_paths" "knit_asis"