plot_base_ppt: Plot base R plots to ppt

View source: R/ppt-utils.R

plot_base_pptR Documentation

Plot base R plots to ppt

Description

Plot base R plots to ppt

Usage

plot_base_ppt(
  code,
  out_ppt,
  height = 6,
  width = 6,
  left = 5,
  top = 5,
  inches = FALSE,
  new_slide = FALSE,
  overwrite = FALSE
)

Arguments

code

code that generates plot

out_ppt

output pptx file

height

height in cm

width

width in cm

left

left alignment in cm

top

top alignment in cm

inches

measures are given in inches

new_slide

add plot to a new slide

overwrite

overwrite existing file

Examples


temp_ppt <- tempfile(fileext = ".pptx")
plot_base_ppt(
    {
        plot(mtcars$mpg, mtcars$drat)
    },
    temp_ppt
)

tanaylab/tgppt documentation built on Aug. 25, 2023, 5:46 a.m.