View source: R/precision_profile_plot.R
| plot.precision_profile | R Documentation |
Creates publication-ready visualization of precision profile results, showing CV vs concentration with the fitted model curve.
## S3 method for class 'precision_profile'
plot(
x,
show_ci = TRUE,
show_targets = TRUE,
show_points = TRUE,
point_alpha = 0.8,
point_size = 3,
line_colors = NULL,
title = NULL,
xlab = NULL,
ylab = NULL,
log_x = FALSE,
...
)
## S3 method for class 'precision_profile'
autoplot(
object,
show_ci = TRUE,
show_targets = TRUE,
show_points = TRUE,
point_alpha = 0.8,
point_size = 3,
line_colors = NULL,
title = NULL,
xlab = NULL,
ylab = NULL,
log_x = FALSE,
...
)
x |
An object of class |
show_ci |
Logical; if |
show_targets |
Logical; if |
show_points |
Logical; if |
point_alpha |
Numeric; transparency of points (0-1, default: 0.8). |
point_size |
Numeric; size of points (default: 3). |
line_colors |
Named character vector with colors for |
title |
Character; plot title. If |
xlab |
Character; x-axis label. If |
ylab |
Character; y-axis label. If |
log_x |
Logical; if |
... |
Additional arguments (currently ignored). |
object |
An object of class |
The precision profile plot displays:
Observed points: CV values at each tested concentration
Fitted curve: Model-predicted CV across the concentration range
Prediction intervals: Confidence bands showing uncertainty
Target lines: Horizontal lines at functional sensitivity thresholds
The plot helps visualize:
How measurement precision changes with concentration
Model fit quality (points should follow the curve)
Functional sensitivity estimates (intersection of curve with target lines)
A ggplot object that can be further customized.
# See ?precision_profile for complete examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.