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)



Number of plots to distribute


Number of rows


Number of columns


Number of pages


list with nrow, ncol, npage

See also