get_nrnc: Find the grid structure in plotting

Description Usage Arguments Value Note Author(s) Examples

View source: R/get_nrnc.R

Description

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

Usage

1
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().

Note

This is used in plotting results of sensitivity analyses, i.e., outputs of sensIvreg or senslm.

Author(s)

Bikram Karmakar

Examples

1
2
3
4
5
## Not run: 
get_nrnc(6)
get_nrnc(5, 3)

## End(Not run)

ivregEX documentation built on May 1, 2019, 10:08 p.m.