Learn R Programming

rvg (version 0.1.2)

write_pptx: Microsoft PowerPoint Graphics Device

Description

A graphical device for Microsoft PowerPoint documents.

Usage

write_pptx(file, code, size = c(width = 10, height = 7.5), ...)

Arguments

file
filename of the Microsoft PowerPoint document to produce. File extension must be .pptx.
code
Plotting code to execute
size
slide size in inches.
...
arguments for fun (passed on to dml_pptx.)

Examples

Run this code

write_pptx(file = "my_plot_1.pptx", code = plot(rnorm(10)))
write_pptx(file = "my_plot_2.pptx", code = barplot(1:7, col = 1:7))

Run the code above in your browser using DataLab