swfscMisc (version 1.3)

row.col.page.fit: 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.

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataCamp Workspace