kc_figxls: Export figures to Excel file

View source: R/kc_figxls.R

kc_figxlsR Documentation

Export figures to Excel file

Description

Export a list of plots to individual sheets within an Excel file; depends on openxlsx and purrr.

Usage

kc_figxls(
  plotlist,
  sname = NULL,
  width = 7,
  height = 5.25,
  units = "in",
  fpath = NULL,
  fname = "~/Desktop/KC_Plots.xlsx",
  overwrite = TRUE
)

Arguments

plotlist

List of plots to export

sname

Vector of names for sheet title

width

Width

height

Height

units

Units (units of width and height as in openxlsx::insertPlot())

fpath

File path for output; deprecated - use fname exclusively

fname

File name for output

overwrite

If TRUE then overwrites file; if FALSE then appends sheets on existing file


kennchua/kctools documentation built on Aug. 28, 2024, 8:37 a.m.