save_pres: Save plot using sizes optimal for (16:9) slide presentation.

Description Usage Arguments Examples

View source: R/save_pres.R

Description

Wraps ggsave to save plots in specified column widths for presentation. Default height is set to the default height of the bullet textbox in LibreOffice Impress. Default width is calculated from golden ratio of the height.

Usage

1
save_pres(filename, scale = 1)

Arguments

scale

Scale of plot (default = 1)

title

Title of plot

path

Save path (default is getwd() value)

Examples

1
2
p <- ggplot(mtcars, aes(mpg, wt)) + geom_point()
save_pres("mtcars.png")

zmorrissey/commonR documentation built on Sept. 15, 2021, 2:12 p.m.