
Last chance! 50% off unlimited learning
Sale ends in
add a new empty shape in the current slide.
ph_empty(x, type = "title", index = 1)ph_empty_at(x, left, top, width, height, bg = "transparent", rot = 0,
template_type = NULL, template_index = 1)
a pptx device
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'.
location of the new shape on the slide
shape size in inches
background color
rotation angle
placeholder template type. If used, the new shape will inherit the style from the placeholder template. If not used, no text property is defined and for example text lists will not be indented.
placeholder template index (integer). To be used when a placeholder template type is not unique in the current slide, e.g. two placeholders with type 'body'.
# NOT RUN {
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_empty(x = doc, type = "title")
print(doc, target = fileout )
# demo ph_empty_at ------
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_empty_at(x = doc, left = 1, top = 2, width = 5, height = 4)
print(doc, target = fileout )
# }
Run the code above in your browser using DataLab