Add a ggplot or a plot to the Microsoft Office Document
1 2 3 4 5 6 7 8 9 10 | add_anyplot(
doc,
x = NULL,
preprocessing = "",
plottype = "auto",
left = 1,
top = 2,
width = 8,
height = 5.5
)
|
doc |
A document object |
x |
An object of class ggplot2 or a string encoding plot or ggplot |
preprocessing |
A string of R code |
plottype |
character One of c("auto","plot","ggplot","emf") |
left |
left margin |
top |
top margin |
width |
desired width of the plot |
height |
desired height of the plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.