grattan_save_pptx.Rd
`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")
ggplot2 plot, or a list of ggplot2 plots
Filename (including path where necessary) to save your Powerpoint presentation.
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.
if (FALSE) {
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")
}