nmDotPlot: NONMEM dot plot

Description Usage Arguments Value Author(s) Examples

Description

Create a custom dotplot of one or more continuous variables against a categorical variable

Usage

1
2
3
4
5
6
7
nmDotPlot(obj, factVar, contVar, bVars = NULL, iVar = "ID",
  gVar = "NULL", title = NULL, xLabs = NULL, yLabs = NULL,
  layout = NULL, maxPanels = numeric(0), addLegend = TRUE,
  maxTLevels = Inf, maxFactPerPanel = Inf, problemNum = 1,
  subProblems = 1, xAxisScaleRelations = c("same", "free", "sliced"),
  yAxisScaleRelations = c("same", "free", "sliced"),
  xAxisPlotStyle = c("data", "cont", "cat"), ...)

Arguments

obj

An object of class NMRun, NMProblem, or data.frame. The object from which data will be plotted.

factVar

Character variable representing the factor variable.

contVar

Character vector or comma separated string specifying continuous variables.

bVars

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

iVar

Subject identifier variable (single string or NULL).

gVar

Grouping variable

title

Plot main title

xLabs

X-axis label

yLabs

Y-axis label

layout

Numeric vector giving the number of columns, rows and pages in a multipanel display. is overwritten by maxPanels.

maxPanels

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

addLegend

Logical flag. Should legends be added?

maxTLevels

If 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.

maxFactPerPanel

Max fact per panel.

problemNum

The problem required for a NMRun object.

subProblems

The sub problem of a run with simulations.

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".

xAxisPlotStyle

"data" or "cont" or "cat".

...

Additional parameters to dotplot.

Value

Multitrellis class object containing the plot.

Author(s)

Mango Solutions

Examples

1
2
3
4
5
6
7
8
## Not run:  
 Theoph.df <- as.data.frame(Theoph)
 nmDotPlot( Theoph.df, factVar = "Subject", contVar = "Dose" )

## 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))
nmDotPlot(test_data, factVar = "B", contVar = "X,W")

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