autosize: Automatically select plot matrix dimensions

Description Usage Arguments Value Examples

View source: R/auto_functions_other.R

Description

autosize automatically makes a sensible choice for the dimensions of a plot matrix based on n, the number of plots. Only works for n <= 36. The dimensions are chosen to be as close to a square as possible.

Usage

1

Arguments

n

The number of plots. Should be a positive integer.

Value

A vector of length 2 with the number of rows and number of columns for the plot matrix.

Examples

1
2
3
4

autoimage documentation built on March 16, 2021, 5:07 p.m.