getMsoChartDims: Get dims parameters of the matrix yielded from the msoChart...

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1

Arguments

series

series yielded from msoChart object by getMsoChartSeries

Value

A list comprising of 4 vectors:

NamRows

Row of Name part

NamCols

Col of Name part

ValRows

Row of Values part

ValCols

Col of Values part

LblRows

Row of XValues part

lblCols

Col of XValues part

Author(s)

Yiying Wang, wangy@aetna.com

See Also

getMsoChartSeries

Examples

 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)

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