saveGG: save a ggplot object with a name derived from the target name...

View source: R/graphics.R

saveGGR Documentation

save a ggplot object with a name derived from the target name this is good because ggplot objects don't always play well with print and because it's good to attach mnemonic names when you have a lot of files TODO: Should probably have logic for mnemonic names for base plots

Description

save a ggplot object with a name derived from the target name this is good because ggplot objects don't always play well with print and because it's good to attach mnemonic names when you have a lot of files TODO: Should probably have logic for mnemonic names for base plots

Usage

saveGG(
  g,
  target = makeArgs()[[1]],
  ext = "pdf",
  desc = "ggp",
  crop = TRUE,
  ...
)

Arguments

g

graphical object to print

target

stem of filename (defaults to the target of the script)

ext

file extension (will use pdf if not specified)

desc

text to replace Rout in default target (ggp by default)

crop

logical: use knitr::plot_crop?

...

arguments to pass to ggsave call


dushoff/shellpipes documentation built on Dec. 14, 2024, 4:36 p.m.