get.layout: Layout for Lattice Functions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get.layout.R

Description

get.layout is a utility function called by estimation.plot and simulation.plot. It provides a layout for lattice functions based upon a user-defined number of plots per page. get.layout is typically not called directly by users.

Usage

1
  get.layout(nplot = NULL)

Arguments

nplot

A integer scalar defining the number of plots per page.

Value

Return a vector of two integers (nx,ny), where nx is the number of rows and ny the number of columns for the lattice layout.

Author(s)

Sebastien Bihorel (sb.pmlab@gmail.com)

See Also

estimation.plot, simulation.plot

Examples

1
2
3
4
  get.layout(1)
  get.layout(7)
  ## Not run: get.layout(1:5)
  ## Not run: get.layout(NA)

sbihorel/scaRabee documentation built on Feb. 7, 2022, 9:50 p.m.