add a ggplot as a png image into an rpptx object
This function will be deprecated in favor of ph_with
in the next release.
ph_with_gg(x, value, type = "body", index = 1, width = NULL,
height = NULL, location = NULL, ...)ph_with_gg_at(x, value, width, height, left, top, ...)
an pptx object
ggplot object
placeholder type (i.e. 'body', 'title')
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', the first
one will be added with index 1 and the second one with index 2.
It is recommanded to use argument location
instead of type
and
index
.
image size in inches
a placeholder location object. This is a convenient
argument that can replace usage of arguments type
and index
.
See ph_location_type, ph_location, ph_location_label,
ph_location_left, ph_location_right, ph_location_fullsize.
Arguments to be passed to png function.
location of the new shape on the slide