pptx: Arrange alignment and save BBC ggplot chart as powerpoint

View source: R/pptx.R

pptxR Documentation

Arrange alignment and save BBC ggplot chart as powerpoint

Description

Running this function will save your plot into powerpoint. You need the packages rvg, officer and bbplot2

Usage

pptx(
  plot_name,
  source_name = NULL,
  save_filepath = "~/Downloads/tmp.pptx",
  pptx_template = file.path(system.file("data", package = "rcutils"), "layouts.pptx"),
  ...
)

Arguments

plot_name

The variable name of the plot you have created that you want to format and save

source_name

The text you want to come after the text 'Source:' in the bottom left hand side of your side

save_filepath

Exact filepath that you want the plot to be saved to

pptx_template

The location of the powerpoint template that officer will use to build your powerpoint slides. Best to stick with the default

Value

the filename of the new powerpoint slide


bbcuffer/rcutils documentation built on Nov. 10, 2023, 12:08 p.m.