fit_plot.Rd
Creates a fit plot either using the xpose.nlmixr package or using a default ggplot call
fit_plot(
dfrm,
type = "xpose",
by = "ID",
idv = "TIME",
obs = "DV",
pred = "PRED",
ipred = "IPRED",
grp = "ID",
logy = TRUE,
scales = "fixed",
mdlnm = NULL,
outnm = NULL,
projloc = ".",
...
)
data frame as created by the nlmixr function
character defining the type of plot that should be created. currently "xpose" and "user" are supported for xpose or ggplot style of plots
character vector with variables for facetting
independent variable or x variable
variable with observed data points
variable with predicted data points
variable with individual predicted data points
variable for grouping (mainly to draw separate lines)
logical if y-axis should be displayed on log scale
character of length one defining the scale parameter of ggplot (e.g. "fixed", "free","free_y",etc)
character with name of the model
character with name of the output file (see details)
character with the base location of the shinyMixR project
in case no outnm is defined a ggplot object will be returned otherwise the results are saved to disk
In case a model is saved, a directory with the name of the model is created within the analysis folder of the current project. Then within this folder the file is saved as outnm. This method was chosen so the interface can easily index applicable files for a certain model. However, this means that output is alwasy saved in this directly regardless of the location of outnm
if (FALSE) {
fit_plot(res)
}