setMsoChartSeries: Reset a msoChart object to match the source data and series

Description Usage Arguments Value Author(s) Examples

Description

It fetches meta data from a msoChart object and then reset the series one by one. The msoChart will be visually modified.

Usage

1
2
3
4
5
setMsoChartSeries(oChart, orient = c("vertical", "horizontal"),
  autoFill = FALSE, ...)

set_mso_series(oChart, orient = c("vertical", "horizontal"),
  autoFill = FALSE, ...)

Arguments

oChart

msoChart object

orient

character, "vertical" or "horizontal". How the series is generated.

autoFill

logical, whether fill the series with the entire row/col. Default FALSE

...

other arguments, e.g., gapWidth and emptyString for getMsoChartSourceData.

Value

Nothing

Author(s)

Yiying Wang, wangy@aetna.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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']]
    setMsoChartSeries(chart, orient="vertical", autoFill=TRUE)
}
## End(Not run)

madlogos/aseshms documentation built on May 21, 2019, 11:03 a.m.