Learn R Programming

npde (version 3.5)

plot.NpdeObject: Plots a NpdeObject object

Description

Plots the data and diagnostic plots in a NpdeObject object

Usage

# S3 method for NpdeObject
plot(x, y, ...)

Value

a ggplot object or a list of ggplot objects (grobs)

Arguments

x

a NpdeObject object

y

unused, here for compatibility with the base plot function

...

additional graphical parameters, which when given will supersede graphical preferences stored in the object

Details

The default plots are represented as a 2x2 array with distribution plots on the top row (histogram and QQ-plot), and scatterplots of npde versus independent variable and population predictions on the bottom row. The graph is plotted in a graphic device window, unless the result is stored in an object (eg myplot<-plot(x)) which can then be printed (eg using print(myplot)).

@references K. Brendel, E. Comets, C. Laffont, C. Laveille, and F.Mentre. Metrics for external model evaluation with an application to the population pharmacokinetics of gliclazide. Pharmaceutical Research, 23:2036--49, 2006.

See Also

set.plotoptions

Examples

Run this code
# \donttest{
data(theopp)
data(simtheopp)

x<-autonpde(theopp,simtheopp,iid="ID",ix="Time", iy="Conc", boolsave=FALSE)
plot(x)
# }

Run the code above in your browser using DataLab