Determine layout for distribution single plots to rows, columns, and pages

If both nrow and ncol are given, npage is determined appropriately. For other cases missing nrow/ncol is determined to match the required npage or to distribute on as many pages as possible.

  • either nrow or ncol is missing: assume 1 for the missing input, determine npage accordingly or use the given number of pages.

  • both nrow and ncol are missing: determined to match npage and keep an ratio of nrow/ncol approx 3/4 or general one page per plot

aux_plotlayout(nplots, nrow = NULL, ncol = NULL, npage = NULL)

Arguments

nplots

Number of plots to distribute

nrow

Number of rows

ncol

Number of columns

npage

Number of pages

Value

list with nrow, ncol, npage

Author

Anne Kümmel, IntiQuan