Calculate Layout for Trellis

DESCRIPTION:

Calculate a nearly-square layout for a Trellis plot.

USAGE:

good.layout(n) 

REQUIRED ARGUMENTS:

n
number of panels in the Trellis plot

VALUE:

a vector of two integers, giving the suggested height and width of the Trellis plot. The integers will either be the same or differ by one, and the smaller will be first.

EXAMPLES:

good.layout(5) # returns c(2,3)