step1_plot_T {AccelStab}R Documentation

Focus on Temperature

Description

Plot the stability data and visualise the predictions with focus on one temperature.

Usage

step1_plot_T(
  step1_down_object,
  focus_T = NULL,
  xname = NULL,
  yname = NULL,
  xlim = NULL,
  ylim = NULL,
  ribbon = FALSE
)

Arguments

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

Details

Plot the stability data and visualise the predictions focusing on one chosen temperature with confidence and prediction intervals.

Value

ggplot2 object with focus on chosen temperature.

Examples

#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")


[Package AccelStab version 2.0.1 Index]