image2office: Save plot/ggplot as image to Microsoft Powerpoint format

Description Usage Arguments Examples

View source: R/image2pptx.R

Description

Save plot/ggplot as image to Microsoft Powerpoint format

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
image2office(
  x,
  target = "Report",
  append = FALSE,
  title = "",
  type = "pptx",
  preprocessing = "",
  left = 1,
  top = 1,
  width = 8,
  height = 5.5
)

Arguments

x

A string vector encoding plot or ggplot

target

name of output file

append

logical value

title

Optional character vector of plot title

type

"pptx" or "docx"

preprocessing

A string of R code or ""

left

left margin

top

top margin

width

desired width of the plot

height

desired height of the plot

Examples

1
2
require(ggplot2)
image2pptx("ggplot(data=iris,aes(x=Sepal.Length))+geom_density()")

rrtable documentation built on April 2, 2020, 5:09 p.m.