Learn R Programming

xpose4 (version 4.5.3)

dist.hist: Plot the parameter or covariate distributions using a histogram

Description

These functions plot the parameter or covariate values stored in an Xpose data object using histograms.

Usage

parm.hist(object,
           onlyfirst = TRUE,
           main="Default",
           ...)
         
cov.hist(object,
           onlyfirst=TRUE,
           main="Default",
           ...)
           
ranpar.hist(object,
           onlyfirst=TRUE,
           main="Default",
           ...)

Arguments

object

An xpose.data object.

onlyfirst

Logical value indicating if only the first row per individual is included in the plot.

main

The title of the plot. If "Default" then a default title is plotted. Otherwise the value should be a string like "my title" or NULL for no plot title. For "Default" the function xpose.multiple.plot.title is used.

Other arguments passed to xpose.plot.histogram.

Value

Delivers a stack of histograms.

Details

Each of the parameters or covariates in the Xpose data object, as specified in object@Prefs@Xvardef$parms, object@Prefs@Xvardef$covariates or object@Prefs@Xvardef$ranpar is evaluated in turn, creating a stack of histograms.

A wide array of extra options controlling histograms are available. See xpose.plot.histogram for details.

See Also

xpose.plot.histogram, xpose.panel.histogram, histogram, xpose.data-class, xpose.prefs-class

Examples

Run this code

## We expect to find the required NONMEM run and table files for run
## 5 in the current working directory
xpdb5 <- xpose.data(5)


## Here we load the example xpose database 
data(simpraz.xpdb)
xpdb <- simpraz.xpdb


## A stack of parameter histograms, with 3 mirror panes
parm.hist(xpdb, mirror=3)


## Covariate distribution, in green
cov.hist(xpdb, hicol=11, hidcol="DarkGreen", hiborder="White")

Run the code above in your browser using DataLab