Learn R Programming

eoffice (version 0.1.6)

topptx: export figure to pptx

Description

export figure to pptx

Usage

topptx(figure = NULL, filename = NULL, width = 6, height = 6,
  append = FALSE)

Arguments

figure

plot figure function

filename

output filename

width

width of the output figure

height

height of the output figure

append

append or not

Examples

Run this code
# NOT RUN {
if(interactive()){
plot(mtcars$mpg, mtcars$disp)
topptx(filename = file.path(tempdir(), "mtcars.pptx"))
## use ggplot2
ggplot(mtcars, aes(mpg, disp, color = factor(cyl))) + geom_point()
topptx(filename = file.path(tempdir(), "mtcars.pptx"))
}
# }

Run the code above in your browser using DataLab