This function generates a ggplot2 visualization of transformed observation curves,
including their transformations and overlays with reference curves. The plot is
useful for comparing the original and the vachette
transformed observation data against typical reference curves.
p.scaled.observation.curves(vachette_data)
A ggplot2
object representing the vachette
transformed observation curves. The plot
includes different layers for query observations, their transformed counterparts,
and the reference curves, with appropriate color coding and line styles.
The function constructs a plot that overlays observation curves with the corresponding reference curves. Query observations and their transformed curves are highlighted, and if applicable, an extrapolated segment of the reference curve is shown as a dashed line.
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.