R/plotting.R
p.obs.ref.query.Rd
This function generates a ggplot2 visualization of the observations and typical curves for both query and reference data within a pharmacometric model. It is designed to compare the observed data against the typical reference and query curves.
p.obs.ref.query(vachette_data)
A ggplot2
object representing the observations and typical curves.
The plot displays the query and reference curves and their corresponding observations,
color-coded for easy comparison.
The function plots the query and reference data, differentiating them using distinct colors. Observations are represented by points, while the typical curves are depicted as lines.
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. If the x-axis is logarithmic, the axis label is adjusted accordingly.