rtf_figure | R Documentation |
Add Figure Attributes
rtf_figure(tbl, fig_width = 5, fig_height = 5, fig_format = NULL)
tbl |
A data frame. |
fig_width |
the width of figures in inch |
fig_height |
the height of figures in inch |
fig_format |
the figure format defined in |
the same data frame tbl
with additional attributes for figure body
The contents of this section are shown in PDF user manual only.
## Not run:
library(dplyr) # required to run examples
file <- file.path(tempdir(), "figure1.png")
png(file)
plot(1:10)
dev.off()
# Read in PNG file in binary format
rtf_read_figure(file) %>%
rtf_figure() %>%
attributes()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.