row.col.page.fit: Number of Rows and Columns on Page

View source: R/row.col.page.fit.R

row.col.page.fitR Documentation

Number of Rows and Columns on Page

Description

Return the number of rows and columns for n that best fits on a page of size width x height.

Usage

row.col.page.fit(n, width = 8.5, height = 11)

Arguments

n

number of items (e.g., plots) to fit on page.

width, height

dimensions of page.

Value

A vector listing the number of rows and columns to use.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

# 9 frames on US letter paper
row.col.page.fit(9)

# 9 frames on a square
row.col.page.fit(9, width = 10, height = 10)


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.