nearsq: Find optimum plotting grid

View source: R/helper.R

nearsqR Documentation

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.

Details

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

Value

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


actel documentation built on Oct. 19, 2023, 9:08 a.m.