add_plot | R Documentation |
Add plot into a document object
add_plot(mydoc, plotstring, width = 6, height = 6, top = 2)
mydoc |
A document object |
plotstring |
String of an R code encoding a plot |
width |
width of plot |
height |
height of plot |
top |
top position of plot |
a document object
require(rrtable) require(officer) require(rvg) require(magrittr) read_pptx() %>% add_text(title="Plot") %>% add_plot("plot(iris)") read_docx() %>% add_text(title="Plot") %>% add_plot("plot(iris)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.