nmHistogram: NONMEM data histogram

Description Usage Arguments Value Author(s) Examples

Description

creates histograms of one or more NONMEM variables

Usage

1
2
3
4
5
6
7
nmHistogram(obj, vars, bVars = NULL, iVar = "ID", refLine = "none",
  type = "percent", addDensity = FALSE, titles = "", xLabs,
  extraSubset, addGrid = TRUE, nint = 12, breaks, layout = NULL,
  maxPanels = NULL, xRotAngle = 0, maxTLevels = Inf,
  problemNum = 1, subProblems = 1, xAxisScaleRelations = c("same",
  "free", "sliced"), yAxisScaleRelations = c("same", "free", "sliced"),
  ...)

Arguments

obj

The object from which data will be plotted (NMRun, NMProblem or data.frame)

vars

Variables from which to generate a histogram (character vector or comma seperate string of names)

bVars

"Trellis" variables on which to split data.

iVar

Subject identifier variable

refLine

Controls addition of a reference line to the histogram(s). Choices are "none", "mean" or "median".

type

Determines the style of y-axis that is used for the plot (percentages, frequencies, or proportions)

addDensity

Logical flag. Should a density estimate be plotted? Only relevant for type = "density"

titles

Plot title

xLabs

x axis label

extraSubset

Currently unused

addGrid

Currently unused

nint

Number of intervals for the creation of X axis bars. It functions identically to the nint parameter of the histogram function from the lattice package

breaks

Control the calculation of breakpoints for the histogram. It functions identically to the breaks parameter of the histogram function from the lattice package.

layout

A length 2 vector which is passed in as the layout parameter to xyplot

maxPanels

Maximum number of panels that should appear on each page of a graph.

xRotAngle

Angle by which to rotate the x-axis tick marks

maxTLevels

f a single numeric (or string), the maximum number of levels that a "by" variable can have before it is binned. If a character vector or a vector of length greater than one, the explicit breakpoints.

problemNum

Number of the problem (applicable to NMRun class only)

subProblems

Number of the simulation subproblems to use (applicable to the NMSim* classes obly)

xAxisScaleRelations

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

yAxisScaleRelations

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

...

Additional parameters passed to histogram

Value

An object of class multiTrellis

Author(s)

Mango Solutions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run:  
 Theoph.df <- as.data.frame(Theoph)
 nmHistogram(Theoph.df, vars = "conc", 
   title = "Theophiline concentration histogram", type = "density") 

## End(Not run)

test_data <- data.frame(X = 1:20, Y = 1:20, Z = c(1:10, seq(from = 11, to = 12, length.out = 10)),
W = 20:1, G = rep(LETTERS[1:2], 10),
B = rep(letters[1:2], each = 10))
nmHistogram(test_data, vars = "X, Z", bVar = "B", xLabs = "HELLO", titles = "TITLE")

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