R/fct_changepoint_plot_helpers.R
add_changepoints.Rd
Adds changepoints annotations to a plotly plot.
add_changepoints(plotly_obj, original_data, changepoint_data)
a plotly object
A dataset with two columns
The output of gfpop::gfpop() with original_data
A list of 3 objects: "plot" (the plotly plot with changepoints added), "changepoint_annotations", and "changepoint_annotations_regions"