graphics-utils: Utility Functions for Graphics

graphics-utilsR Documentation

Utility Functions for Graphics

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.

Usage

mfrow(n)

Arguments

n

number of plots to be arranged.

Value

a 2-long numeric vector that can be passed to ⁠par(mfrow = <value>)⁠.

Examples

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

pkgmaker documentation built on May 3, 2023, 5:08 p.m.