Get the page layout for the pdf document based on the number of plots to display and the number of columns and rows.
Arguments
- number_of_plots
Number of plots to be output into the pdf document.
- ncol
Number of columns of plots allowed in one page of the pdf document. Default: NULL
- nrow
Number of rows of plots allowed in one page of the pdf document. Default: NULL
Details
If both
ncol
andnrow
are NULL or onlyncol
is NULL, the layout will have one column and the total number of rows will be the number of plots it needs to produce.If only
nrow
is NULL, the layout will have one row and the total number of columns will be the number of plots it needs to produce.