nearsq {actel} | R Documentation |
Calculates the optimal distribution of plots in a square grid.
nearsq(n, tol = 5/3 + 0.001)
n |
number of plots to fit. |
Obtained here: https://stackoverflow.com/questions/32017327/calculate-the-optimal-grid-layout-dimensions-for-a-given-amount-of-plots-in-r
a vector of the number of rows and number of columns needed to distribute the desired number of plots.