image2office | R Documentation |
Save plot/ggplot as image to Microsoft Powerpoint format
image2office( x, target = "Report", append = FALSE, title = "", type = "pptx", preprocessing = "", left = 1, top = 1, width = 8, height = 5.5 )
x |
A string vector encoding plot or ggplot |
target |
name of output file |
append |
logical value |
title |
Optional character vector of plot title |
type |
"pptx" or "docx" |
preprocessing |
A string of R code or "" |
left |
left margin |
top |
top margin |
width |
desired width of the plot |
height |
desired height of the plot |
## Not run: require(ggplot2) image2pptx("ggplot(data=iris,aes(x=Sepal.Length))+geom_density()") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.