Learn R Programming

swfscMisc (version 1.6.5)

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)

Value

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

Arguments

n

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

width, height

dimensions of page.

Author

Eric Archer eric.archer@noaa.gov

Examples

Run this code
# 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 DataLab