esquisse (version 0.1.2.900)

ggplot_to_ppt: Utility to export ggplot objects to PowerPoint

Description

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

Usage

ggplot_to_ppt(gg = NULL)

Arguments

gg

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

Value

Path to the temporary ppt file.

Examples

Run this code
# 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")

# }

Run the code above in your browser using DataLab