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

View source: R/image2pptx.R

image2officeR Documentation

Save plot/ggplot as image to Microsoft Powerpoint format

Description

Save plot/ggplot as image to Microsoft Powerpoint format

Usage

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

## Not run: 
require(ggplot2)
image2pptx("ggplot(data=iris,aes(x=Sepal.Length))+geom_density()")

## End(Not run)

rrtable documentation built on April 5, 2022, 9:08 a.m.