save_col: Save plots in 1-, 1.5-, or 2-column width for manuscripts

Description Usage Arguments Examples

View source: R/save_col.R

Description

Wraps ggsave to save plots in specified column widths for publication.

Usage

1
save_col(title, col_width = "1", path = ".", scale = 1)

Arguments

title

Title of plot

col_width

Column width (default = 1)

path

Save path (default is getwd() value)

scale

Scale of plot (default = 1)

Examples

1
2
3
p <- ggplot(mtcars, aes(mpg, wt)) + geom_point()
save_col("mtcars-1col.png")  # single-column width
save_col("mtcars-1.5col.png", col_width = "2")  # double-column width

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