export_charts_ppt: Export a list of charts made in ggplot to Powerpoint

Description Usage Arguments Examples

View source: R/export_charts_ppt.R

Description

This function allows you export a list of charts made in ggplot to Powerpoint.

Usage

1
2
3
4
5
6
7
8
export_charts_ppt(
  listP,
  export_path,
  template_path = NULL,
  layout = "Title and Content",
  master = "Office Theme",
  as_vectors = TRUE
)

Arguments

listP

a list with the ggplot charts

export_path

The path where to export the Powerpoint

template_path

The path of the Powerpoint template

layout

Name of the Powerpoint layout

master

Name of the Powerpoint master

as_vectors

Whether to export the ggplots as vectors

Examples

1
2
3
4
5
library(ggplot2)
listP <- list()
listP[["first_chart"]] <- ggplot(data = iris) +
geom_point(mapping = aes(Sepal.Length, Petal.Length))
export_charts_ppt(listP, export_path = "test.pptx")

shezadt/utile documentation built on July 12, 2021, 10:54 a.m.