Learn R Programming

scaRabee (version 1.1-4)

get.layout: Layout for Lattice Functions

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

get.layout(nplot = NULL)

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.

Arguments

nplot

A integer scalar defining the number of plots per page.

Author

Sebastien Bihorel (sb.pmlab@gmail.com)

See Also

estimation.plot, simulation.plot

Examples

Run this code
  get.layout(1)
  get.layout(7)
  if (FALSE) get.layout(1:5)
  if (FALSE) get.layout(NA)

Run the code above in your browser using DataLab