produces a vector graphics output from R plot instructions
and add the result in a PowerPoint document object produced
by read_pptx
.
These functions will be deprecated and function ph_with.dml
should be used instead.
ph_with_vg(x, code, ggobj = NULL, type = "body", index = 1, ...)ph_with_vg_at(x, code, ggobj = NULL, left, top, width, height, ...)
an rpptx
object produced by officer::read_pptx
plot instructions
ggplot objet to print. argument code
will
be ignored if this argument is supplied.
placeholder type
placeholder index (integer). This is to be used when a placeholder type is not unique in the current slide, e.g. two placeholders with type 'body'.
arguments passed on to dml_pptx
.
left and top origin of the plot on the slide in inches.
Height and width in inches.