Learn R Programming

RcmdrPlugin.survival (version 1.3-2)

mfrow: Function to Compute Layout for Plot Array

Description

Given a number of plots n, find a arrangement for showing the plots in an array, set by par(mfrow=mfrow(n)).

Usage

mfrow(n, max.plots = 0)

Arguments

n

number of plots

max.plots

maximum number of plots; 0, the default, means no maximum.

Author

John Fox <jfox@mcmaster.ca>

See Also

par

Examples

Run this code
mfrow(4)
mfrow(5)
mfrow(6)

Run the code above in your browser using DataLab