actel (version 1.1.0)

nearsq: Find optimum plotting grid

Description

Calculates the optimal distribution of plots in a square grid.

Usage

nearsq(n, tol = 5/3 + 0.001)

Arguments

n

number of plots to fit.

Value

a vector of the number of rows and number of columns needed to distribute the desired number of plots.

Details

Obtained here: https://stackoverflow.com/questions/32017327/calculate-the-optimal-grid-layout-dimensions-for-a-given-amount-of-plots-in-r