step1_plot_CI | R Documentation |
Plot the stability data and visualise the predictions with confidence intervals.
step1_plot_CI(
step1_down_object,
xname = NULL,
yname = NULL,
xlim = NULL,
ylim = NULL,
ribbon = FALSE
)
step1_down_object |
The fit object from the step1.down function (required). |
xname |
Label for the x-axis (optional). |
yname |
Label for the y-axis (optional). |
xlim |
x-axis limits (optional). |
ylim |
y-axis limits (optional). |
ribbon |
Add shade to confidence intervals (optional). |
Use the fit object obtained from the step1.down function to plot the data and visualise the predictions with confidence intervals applied. There is an option to view the confidence intervals as a ribbon. The confidence interval value is chosen in the step1.down function.
Plot of stability data with prediction curves and confidence intervals.
#load antigenciity data
data(antigenicity)
#run step1.down fit
fit1 <- step1_down(data = antigenicity, y = "conc", .time = "time",
C = "Celsius", max_time_pred = 3, confidence_interval = 0.9, validation = "validA")
#plot raw data with prediction curves and confidence intervals.
step1_plot_CI(step1_down_object = fit1, xlim = NULL, ylim = NULL,
xname = "Time (Years)", yname = "Concentration", ribbon = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.