Learn R Programming

AccelStab (version 2.3.1)

step1_plot_pred: Plot Model Predictions

Description

Plot the stability data and visualise the predictions.

Usage

step1_plot_pred(
  step1_down_object,
  xname = NULL,
  yname = NULL,
  xlim = NULL,
  ylim = NULL
)

Value

Plot of accelerated stability data with prediction curves.

Arguments

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).

Details

Use the fit object from the step1.down function to plot the accelerated stability data and visualise the predictions.

Examples

Run this code
#Load antigenicity data
data(antigenicity)

fit1 <- step1_down(data = antigenicity, y = "conc", .time = "time",
 C = "Celsius", max_time_pred = 3)

step1_plot_pred(step1_down_object = fit1, xlim = c(0,1.5), ylim = c(0,105),
 xname = "Time (Years)", yname = "Concentration")

Run the code above in your browser using DataLab