step1_plot_T | R Documentation |
Plot the stability data and visualise the predictions with focus on one temperature.
step1_plot_T(
step1_down_object,
focus_T = NULL,
xname = NULL,
yname = NULL,
xlim = NULL,
ylim = NULL,
ribbon = FALSE
)
step1_down_object |
The fit object from the step1.down function (required). |
focus_T |
Selected temperature to highlight on the plot. |
xname |
Label for the x-axis (optional). |
yname |
Label for the y-axis (optional). |
xlim |
the x-axis limits (optional). |
ylim |
the y-axis limits (optional). |
ribbon |
adds shade to confidence and prediction intervals (optional). |
Plot the stability data and visualise the predictions focusing on one chosen temperature with confidence and prediction intervals.
ggplot2 object with focus on chosen temperature.
#load potency data
data(potency)
#run step1_down fit
fit1 <- step1_down(data = potency, y = "Potency", .time = "Time",
C = "Celsius", zero_order = TRUE)
#plot raw data with prediction curves with focus on temperature in dataset.
step1_plot_T(fit1, focus_T = 5,ribbon = TRUE, xlim = NULL, ylim = c(0,12),
xname = "Time (Month)", yname = "Potency")
#plot raw data with prediction curves with focus on temperature not in dataset.
step1_plot_T(fit1, focus_T = -10,ribbon = TRUE, xlim = NULL, ylim = c(0,12),
xname = "Time (Months)", yname = "Potency")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.