powered by
Plan a square/matrix layout of plots
squareLayout(n)
A vector of integers of length 2. Can be passed to layout or mfrow in par to make the layout.
layout
mfrow
par
Number of plots
Jitao David Zhang <jitao_david.zhang@roche.com>
# \donttest{ op <- par(mfrow=squareLayout(7)) plot(1:5) plot(2:6) plot(3:7) plot(-9:-4) plot(8:5) plot(5:1) plot(1:9) par(op) # }
Run the code above in your browser using DataLab