nmBarChart: NONMEM categorical barchart

Description Usage Arguments Value Author(s) Examples

Description

Generates a categorical barchart of a set of categorical variables against another one.

Usage

1
2
3
4
5
nmBarChart(obj, xVars, yVars, bVars = NULL, xLab = NULL,
  xRotAngle = 0, yLab = NULL, titles = NULL, addLegend = TRUE,
  xBin = Inf, problemNum = 1, subProblems = 1,
  yAxisScaleRelations = c("same", "free", "sliced"),
  xAxisScaleRelations = c("same", "free", "sliced"), ...)

Arguments

obj

NMProblem or data.frame object

xVars

Character vector specifying x-axis variable. Only one may be specified at the moment.

yVars

Character vector specifying y-axis variable. Only one may be specified at the moment.

bVars

Trellis variables, specified as characters (or NULL, which is the default).

xLab

x-axis label

xRotAngle

Angle by which to rotate x-angle tick labels.

yLab

y-axis label

titles

Main plot title

addLegend

Logical. Should we add a legend to the plot?

xBin

X-axis binning: Either a single value for range binning or explicit cut points.

problemNum

The problem required for a NMRun object.

subProblems

The sub problem of a run with simulations.

yAxisScaleRelations

Y-axis scale relations when panels are displayed. One of "same", "free" or "sliced".

xAxisScaleRelations

X-axis scale relations when panels are displayed. One of "same", "free" or "sliced".

...

additional parameters passed to the barchart function

Value

Multitrellis class object

Author(s)

Mango Solutions

Examples

1
2
3
4
5
6
7
8
9
## Not run:  
nmBarChart(mtcars, xVars = "cyl", yVars = "gear", bVars = "vs")

## End(Not run)

CO2.df <- as.data.frame(CO2)
nmBarChart(CO2.df, "Plant", "Treatment",
        title = "CO2", xLab = "The Treatment", 
        yLab = "The type")

MangoTheCat/RNMGraphics documentation built on May 8, 2019, 3:51 p.m.