ggsave_wrapper: wrapper function to feed arguments to ggsave

View source: R/general_functions.R

ggsave_wrapperR Documentation

wrapper function to feed arguments to ggsave

Description

wrapper function to feed arguments to ggsave

Usage

ggsave_wrapper(g, filename_fn, width, height, filename_args)

Arguments

g

either a ggplot object, or a list of ggplot objects of length m, or a nested list of ggplot objects (length n, each of length m)

filename_fn

function which makes a filename by taking n arguments and outputting a character vector of length 1. If g is a ggplot object or a list of ggplot objects of length m, then n = 1

width

numeric vector of length 1. width of figure in cm

height

numeric vector of length 1. height of figure in cm

filename_args

if g is a ggplot object, a charater vector of length 1. if g is a list of ggplot objects of length m, a character vector of length m. if g is a nested list of ggplot objects, a list of length 2, containing a character vector of length n and a character vector of length m respectively.


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.