Skip to contents

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

Usage

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

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

...

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.

Functions

  • cov.hist(): Covariate distributions

  • parm.hist(): parameter distributions

  • ranpar.hist(): random parameter distributions

Author

Andrew Hooker & Justin Wilkins

Examples


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

## Parameter histograms
parm.hist(xpdb)



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




## Random parameter histograms
ranpar.hist(xpdb)