p.scaling.factor {vachette} | R Documentation |
Plot Scaling Factors for Typical Curves
Description
This function generates a ggplot2 visualization of the scaling factors applied to the typical curves within a pharmacometric model. The plot differentiates between reference and query curves and illustrates how scaling factors vary across segments.
Usage
p.scaling.factor(vachette_data)
Arguments
vachette_data |
An object of class |
Details
The function creates a plot that displays the x-scaling factors for the curves, with different segments color-coded. The plot is faceted by curve type (reference or query).
The plot's title includes the model name, and the caption provides details about the reference covariate(s) used. The x-axis range is dynamically set based on the minimum and maximum x values, before and after scaling.
Value
A ggplot2
object representing the scaling factors for the curves.
The plot includes facets for each curve type (reference or query),
and it shows the scaling factors as a function of the x-axis values.