Description Usage Arguments Value Author(s) See Also Examples
Get the indices of rows and columnss involved in msoChart object. The function
will parse the series list yieled by getMsoChartSeries, and then
get the original parameters out of the matrix. Please note that that
matrix may be different from that should be according to the actual chart.
1 | getMsoChartDims(series)
|
series |
series yielded from msoChart object by |
A list comprising of 4 vectors:
Row of Name part
Col of Name part
Row of Values part
Col of Values part
Row of XValues part
Col of XValues part
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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']]
series <- getMsoChartSeries(chart)
getMsoChartDims(series)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.