pptx | R Documentation |
Running this function will save your plot into powerpoint. You need the packages rvg, officer and bbplot2
pptx(
plot_name,
source_name = NULL,
save_filepath = "~/Downloads/tmp.pptx",
pptx_template = file.path(system.file("data", package = "rcutils"), "layouts.pptx"),
...
)
plot_name |
The variable name of the plot you have created that you want to format and save |
source_name |
The text you want to come after the text 'Source:' in the bottom left hand side of your side |
save_filepath |
Exact filepath that you want the plot to be saved to |
pptx_template |
The location of the powerpoint template that officer will use to build your powerpoint slides. Best to stick with the default |
the filename of the new powerpoint slide
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.