Creates a ggplot2 visualization from the difference table produced by
functional_group_summary(). The plotted values reflect the smoothing method
chosen when that summary object was created.
Usage
plot_functional_difference(
summary,
title = "Functional difference between groups",
xlab = "Time",
ylab = "Difference",
color = "#20262e",
highlight_intervals = NULL
)Arguments
- summary
A list returned by
functional_group_summary()or a data frame withtimeanddifferencecolumns.- title
Plot title.
- xlab
Label for the x-axis.
- ylab
Label for the y-axis.
- color
Line color.
- highlight_intervals
Optional data frame with
startandendcolumns used to shade one or more intervals.
