add_anyplot: Add a ggplot or a plot to the Microsoft Office Document

Description Usage Arguments

View source: R/plot2pptx.R

Description

Add a ggplot or a plot to the Microsoft Office Document

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
add_anyplot(
  doc,
  x = NULL,
  preprocessing = "",
  plottype = "auto",
  left = 1,
  top = 2,
  width = 8,
  height = 5.5
)

Arguments

doc

A document object

x

An object of class ggplot2 or a string encoding plot or ggplot

preprocessing

A string of R code

plottype

character One of c("auto","plot","ggplot","emf")

left

left margin

top

top margin

width

desired width of the plot

height

desired height of the plot


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