gg_quicksave: Quickly Format and Save a ggplot Object with Reasonable...

Description Usage Arguments

View source: R/gg_quicksave.R

Description

Optionally resizes title and axis labels and saves a 1000 dpi png 6 inches tall and 8 inches wide via ggsave. Values are adjustable.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
gg_quicksave(
  filename = paste("fig1-", Sys.Date(), ".png", sep = ""),
  path = getwd(),
  plot = last_plot(),
  resize_labels = TRUE,
  title_size = 16,
  axistitle_size = 13,
  axistext_size = 9,
  height = 6,
  width = height/0.75,
  dpi = 1000
)

Arguments

filename

Character string

path

Character string

plot

ggplot object

resize_labels

Logical value

title_size

Numeric value

axistitle_size

Numeric value

axistext_size

Numeric value

height

Numeric value

width

Numeric value

dpi

Numeric value


vandomed/dvmisc documentation built on Oct. 2, 2020, 9:50 p.m.