Add plot into layout placeholder
phl_with_plot(x, olay, id, plotFnc, res = 300, ...)rpptx object
an OfficerLayout object created using phl_layout
an single integer with an id of the placeholder from olay object.
a function which creates a plot when called.
The nominal resolution in ppi which will be recorded in the bitmap file. Default 300. See res parameter in png.
other arguments passed to png function.
rpptx object which represents PowerPoint presentation in officer. The returned object contains a new element on the slide.