align_save: Align Plots in a Grid and Save to PDF

Description Usage Arguments Details Value Examples

View source: R/align_save.R

Description

Aligns grid of plots by axes and saves as pdf

Usage

1
align_save(plots.list, ncol, fileName, width = 8.5, height = 11)

Arguments

plots.list

List of ggplot objects

ncol

Number of columns in grid

fileName

Output filename and extension (.pdf)

width

Width of output pdf (in) 8.5 by default

height

Width of output pdf (in) 11 by default

Details

align_save fizzTulz

Value

Saves a pdf file in current directory

Examples

1
2
3
p1 <- ggplot2::ggplot(mtcars) +ggplot2::geom_point(ggplot2::aes(wt, mpg))
p2 <- ggplot2::ggplot(mtcars) +ggplot2::geom_point(ggplot2::aes(wt, cyl))
physTools::alignSave(list(p1,p2), 1, "plot1.pdf")

lindseyboulet/fizzTulz documentation built on Jan. 2, 2021, 4:04 p.m.