View source: R/grattan_save_pptx.R
grattan_save_pptx | R Documentation |
'grattan_save_pptx()' creates a Grattan-style Powerpoint presentation with editable vector graphics and editable text. The title, subtitle, and caption of your graph are placed in the appropriate places. Speaker notes are included, which include the file path to the R script from which you called 'grattan_save_pptx()'. If you supply a list of plots, your Powerpoint presentation will include multiple slides – one per plot. If you specify multiple types, multiple PPTX files will be created.
grattan_save_pptx(p = ggplot2::last_plot(), filename, type = "fullslide")
p |
ggplot2 plot, or a list of ggplot2 plots |
filename |
Filename (including path where necessary) to save your Powerpoint presentation. |
type |
Chart type. If you specify multiple types, as in 'type = c("fullslide", "wholecolumn")' or 'type = "all"', multiple files will be created, with the type added to the filename. |
## Not run:
library(ggplot2)
p <- ggplot(mtcars, aes(x = wt, y = mpg)) +
geom_point() +
theme_grattan() +
labs(title = "My title",
subtitle = "My subtitle",
caption = "Notes: notes go here. Source: source goes here.")
grattan_save_pptx(p, "test.pptx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.