plot_base_ppt | R Documentation |
Plot base R plots to ppt
plot_base_ppt(
code,
out_ppt,
height = 6,
width = 6,
left = 5,
top = 5,
inches = FALSE,
new_slide = FALSE,
overwrite = FALSE
)
code |
code that generates plot |
out_ppt |
output pptx file |
height |
height in cm |
width |
width in cm |
left |
left alignment in cm |
top |
top alignment in cm |
inches |
measures are given in inches |
new_slide |
add plot to a new slide |
overwrite |
overwrite existing file |
temp_ppt <- tempfile(fileext = ".pptx")
plot_base_ppt(
{
plot(mtcars$mpg, mtcars$drat)
},
temp_ppt
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.