Description Usage Arguments Value Author(s) Examples
It calls setMsoChartSeries
and setMsoChartScale
to
match source data with chart series and axes scales.
1 2 3 4 5 |
files |
character vector of ppt files. If NULL, a GUI wizard will launch. |
orient |
character, "vertical" or "horizontal". How the series is generated. |
autoFill |
logical, whether fill the series with the entire row/col. Default FALSE |
save |
Logical, whether save the file after processing. Default TRUE. |
... |
other arguments, e.g., |
Nothing
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
ppt <- RDCOMClient::COMCreate("Powerpoint.Application")
pres <- ppt$Presentations()$Open(<some ppt file>)
slide <- pres$Slides(2) # the 2nd slide
shape <- slide$Shapes(3) # the 3rd shape
if (shape[['HasChart']] == -1) { # if the shape contains msoChart
chart <- shape[['Chart']]
refreshPptCharts(NULL, orient="vertical", autoFill=TRUE)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.