layout_mat: Create layout matrix automatically from plot number

View source: R/main.R

layout_matR Documentation

Create layout matrix automatically from plot number

Description

Create a layout matrix that can be used with gridExtra to arrange ggplot objects. The dimensions of the matrix are chosen automatically from the number of plots to create a rectangular arrangement (portrait) of sufficient size.

Usage

layout_mat(n)

Arguments

n

number of plots in final layout


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.