Description Usage Arguments Examples
Save plot/ggplot code to Microsoft Powerpoint format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
... |
Further argument to be passed to function dml() |
ggobj |
a ggplot object |
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 "" |
plottype |
character One of c("auto","plot","ggplot","emf") |
echo |
logical. If true, show code. |
parallel |
logical. If true, add two plots side by side |
left |
left margin |
top |
top margin |
width |
desired width of the plot |
height |
desired height of the plot |
aspectr |
desired aspect ratio of the plot |
1 2 3 4 | code2office(plot(iris))
require(ggplot2)
gg=ggplot(data=mtcars,aes(x=wt,y=mpg))+geom_point()
code2office(ggobj=gg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.