setMsoChartSeries: Reset an 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
6
7
8
set_msochart_scale(oChart, changeScale = TRUE, returnValue = FALSE,
  ...)

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

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

Arguments

oChart

msoChart object

...

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

orient

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

autoFill

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

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/asesmso documentation built on June 26, 2019, 12:17 a.m.