Description Usage Arguments Value Note Author(s) See Also Examples
The function calls RDCOMClient
to retrieve the source data from
the embeded Worksheet of a msoChart object in the form of character matrix. It
basically creates COM objects step by step and fetch Chart[["ChartData"]][[
"Workbook"]]$Worksheets(1)[["UsedRange"]][["Value"]]
.
You may then process the raw matrix using getCoreDataMtx
.
1 2 3 4 5 |
oChart |
msoChart object (COMIDispatch class) |
retainCoreAreaOnly |
Logical, only obtain the upper left core area of the
matrix. Default FALSE. If TRUE, the function |
gapWidth |
numeric, width of the "gap" rows or columns. Default 2. If
|
emptyString |
character vector, how to define the "gap".
Default |
... |
Other arguments. |
A character matrix with character rownames and colnames. Empty cells are converted to NA.
Currently RDCOMClient
cannot retrieve non-ASCII characters.
By default, it only fetches the whole UsedRange of the source data from the 1st worksheet.
It will open an MS Excel process to communicate via COM interface silently.
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']]
getMsoChartSourceData(chart)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.