Description Usage Arguments Value Examples
Adds plot viewer content to Powerpoint slide; it relies on the package 'officer'
1 |
path |
optional string to specify path for plot viewer temp file; current working directory is default |
width |
optional integer to specify chart width |
height |
optional integer to specify chart height |
left |
optional integer to specify left-hand margins on Powerpoint slide |
header |
optional character string to specify Powerpoint slide header |
source |
optional character string to specify Powerpoint slide source note |
source_dt |
optional character string to specify Powerpoint slide source date |
left |
optional integer to specify top margins on Powerpoint slide |
Adds plot viewer content to Powerpoint slide
1 2 3 4 5 6 7 8 | Before charts can be added to a Powerpoint file, it needs to be initiated using a pptx Template file via:
doc <- read_pptx("C:/Documents/Powerpoint/Template.pptx")
Charts can then be added via:
makePPT(path = "C:/temp", header="US GDP Figures", source = "Bloomberg, Fed. Saint Louis")
Once all charts are added, the Powerpoint file is saved via:
print(doc, target = "C:/Documents/Powerpoint/US_Macro_Slideset.pptx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.