ggplot_to_ppt: Utility to export ggplot objects to PowerPoint

Description Usage Arguments Value Examples

View source: R/ggplot_to_ppt.R

Description

You can use the RStudio addin to interactively select ggplot objets, or directly pass their names to the function.

Usage

1

Arguments

gg

character. Name(s) of ggplot object(s), if NULL, launch the Shiny gadget.

Value

Path to the temporary ppt file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

# Shiny gadget
if (interactive()) {

ggplot_to_ppt()

}

# Or with an object's name
library(ggplot2)
p <- ggplot(iris) +
  geom_point(aes(Sepal.Length, Sepal.Width))

ggplot_to_ppt("p")


## End(Not run)

dreamRs/esquisse documentation built on Aug. 9, 2018, 9:31 a.m.