Skip to contents

Save a ggplot with standard settings to folder determined by config.yml

Usage

save_png(name, plot = last_plot(), width = 18, height = 9, scaling = 1, ...)

Arguments

name

File name without extensoin

plot

The plot object, defaults to last plot drawn

width

Width in cm, defaults to 18

height

Height in cm, defaults to 9

scaling

scale, defaults to 1. Higher numbers like 1.2 make bigger letters and objects inside plot

...

Passed to ggsave()

Value

The path to the resulting PNG file, invisibly