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)


EricArcher/swfscMisc documentation built on April 12, 2024, 4:21 a.m.