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

View source: R/plot2pptx.R

add_anyplotR Documentation

Add a ggplot or a plot to the Microsoft Office Document

Description

Add a ggplot or a plot to the Microsoft Office Document

Usage

add_anyplot(
  doc,
  x = NULL,
  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

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


cardiomoon/rrtable documentation built on March 14, 2023, 10:39 p.m.