Learn R Programming

mschart (version 0.2.5)

ph_with_chart: add chart into a PowerPoint slide

Description

add a chart as a new shape in the current slide. These functions are deprecated, function ph_with.ms_chart should be used instead.

Usage

ph_with_chart(x, chart, type = "body", index = 1)

ph_with_chart_at(x, chart, left, top, width, height)

Arguments

x

an rpptx object

chart

ms_chart object

type

placeholder type

index

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'.

left, top

location of chart on the slide

height, width

Height and width in inches.