Learn R Programming

ivregEX (version 1.0)

get_nrnc: Find the grid structure in plotting

Description

Takes input the number of plots and returns the argument of mfrow. Does not set mfrow in par().

Usage

get_nrnc(m, nc = -1, choices = 2:5)

Arguments

m

Number of plots, a positive integer.

nc

A preferred choice of number of columns. If set to -1, it is calculated based on choices.

choices

Various choices for nc.

Value

Two numbers for nr and nc in mfrow argument of par().

Examples

Run this code
# NOT RUN {
get_nrnc(6)
get_nrnc(5, 3)
# }

Run the code above in your browser using DataLab