make.grid {metaseqR} | R Documentation |
Returns a vector for an optimized m x m plot grid to be
used with e.g. par(mfrow)
. m x m is as close as
possible to the input n. Of course, there will be empty
grid positions if n < m x m.
make.grid(n)
n |
An integer, denoting the total number of plots to be created. |
A 2-element vector with the dimensions of the grid.
Panagiotis Moulos
g1 <- make.grid(16) # Returns c(4,4) g2 <- make.grid(11) # Returns c(4,3)