Utility Functions for Graphics

Usage

mfrow(n)

Arguments

n
number of plots to be arranged.

Description

Utility Functions for Graphics

mfrow returns a 2-long numeric vector suitable to use in par(mfrow=x), that will arrange n panels in a single plot.

Examples

mfrow(1)
[1] 1 1
mfrow(2)
[1] 1 2
mfrow(3)
[1] 2 2
mfrow(4)
[1] 2 2
mfrow(10)
[1] 3 3