Graphical-Subsetting: Change and Retrieve Graphical Subsets

Description Usage Arguments Details Value Author(s) Examples

Description

NONMEM data objects and data frames can have "graphical subsets" associated to them. These subsets will be applied whenever a graphing function is called on the object. This functionality is intended to facilitate the plotting of "standard" subsets, i.e. subsets without dosing information.

Usage

1
2
3
graphSubset(x) <- value

graphSubset(x)

Arguments

x

An object of class NMRun, NMProblem or data.frame.

value

A vector of (character) subsets.

Details

Subsets assigned to an object are obtained using graphSubset. Subsets will be a set a vector of strings which are converted to R expressions and then executed. They can be assigned using graphSubset<-.

Value

For graphSubset, a character vector representing the subsets to be applied to x before plotting. For graphSubset<-, the updated object, i.e. with additional or removed subsets.

Author(s)

Mango Solutions

Examples

1
2
3
4
5
6
7
## Not run: 
x <- importNm("TestData1.ctl", "TestData1.lst",
  path  = system.file(package = "RNMImport", "unittests/testdata/TestRun"))
graphSubset(x) <- c("MDV != 1", "EVID == 0", "AMT <= 0")
graphSubset(x)

## End(Not run)

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