squareLayout: Plan a square/matrix layout of plots

View source: R/utils.R

squareLayoutR Documentation

Plan a square/matrix layout of plots

Description

Plan a square/matrix layout of plots

Usage

squareLayout(n)

Arguments

n

Number of plots

Value

A vector of integers of length 2. Can be passed to layout or mfrow in par to make the layout.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples


  ## Not run: 
    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)
  
## End(Not run)


bedapub/ribiosPlot documentation built on Sept. 1, 2023, 6:50 p.m.