histGOF {nonmem2R} | R Documentation |
Histogram GOF
Description
Histogram GOF showing histogram, smooth density, and normal density as reference line and caption added as reurned by get.caption
Usage
histGOF(
data,
x,
title = "",
color = "",
fx = NULL,
bins = NA,
refline = TRUE,
control = GOF.control()
)
Arguments
data |
data.frame to plot |
x |
character string with name of column for x |
title |
title |
color |
data columns to set different colors in plot, interpreted as factor |
fx |
function for transformation of x before plotting |
bins |
number of histogram bins, if NA, bins are set using Sturges' formula |
refline |
add reference line (default =TRUE) or not (FALSE) |
control |
an optional list of control settings. See GOF.control for the names of the settable control values and their effect. |
Examples
dd<-data.frame(CWRES=rnorm(100),gr=rep(LETTERS[1:5],20))
histGOF(dd,"CWRES",color="gr")
[Package nonmem2R version 0.2.5 Index]