Skip to contents

Generates a plot showing individual time series shapes and their consensus (mean) shape.

Usage

plot_single_and_mean_splines(time_series_data, title, plot_info, level)

Arguments

time_series_data

A dataframe or matrix with time series data.

title

A character string specifying the title of the plot.

plot_info

List containing the elements y_axis_label (string), time_unit (string), treatment_labels (character vector), treatment_timepoints (integer vector). All can also be NA. This list is used to add this info to the spline plots. time_unit is used to label the x-axis, and treatment_labels and -timepoints are used to create vertical dashed lines, indicating the positions of the treatments (such as feeding, temperature shift, etc.).

Value

A ggplot object representing the single and consensus shapes.

See also

ggplot2