powered by
Takes input the number of plots and returns the argument of mfrow. Does not set mfrow in par().
mfrow
par()
get_nrnc(m, nc = -1, choices = 2:5)
Number of plots, a positive integer.
A preferred choice of number of columns. If set to -1, it is calculated based on choices.
choices
Various choices for nc.
nc
Two numbers for nr and nc in mfrow argument of par().
# NOT RUN { get_nrnc(6) get_nrnc(5, 3) # }
Run the code above in your browser using DataLab