Learn R Programming

pkgmaker (version 0.32.10)

graphics-utils: 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)

Value

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

Arguments

n

number of plots to be arranged.

Examples

Run this code
 
mfrow(1)
mfrow(2)
mfrow(3)
mfrow(4)
mfrow(10)

Run the code above in your browser using DataLab