Find an equilibrated layout for a figure according to number of panels to include

Fig_split(x)

Arguments

x

number of panels of the future plot

Value

nrow

Details

As screens are larger than height, nrow is set not to exceed ncol. Rules are : ncol >= nrow, ncol <= nrow + 2, ntot >= x 100*100 is the maximum window. It is surely too big for a screen, but who knows what you do with this function... Be sure your window is big enough !