save_fig: saves figures with and without GC logo

Description Usage Arguments Details Author(s)

View source: R/figure_utils.R

Description

Save ggplot figures with some standard formatting

Usage

1
2
3
4
5
6
7
save_fig(
  fig,
  width = 6.9,
  height = 5,
  name = paste0("fig_", Sys.Date(), ".png"),
  loc = "../figs/"
)

Arguments

fig

ggplot figure

width

default 6.9 in

height

default 5 in

name

defaults to fig_(date).png. Appended to loc.

loc

directory in which to save figures; default "../figs/"

Details

Save ggplot figures with defaults set according to project specifications and append the guinn center logo to the figures.

Author(s)

Daniel James Liden


djliden/youthhealthr documentation built on March 19, 2021, 12:52 p.m.