Adds changepoints annotations to a plotly plot.

add_changepoints(plotly_obj, original_data, changepoint_data)

Arguments

plotly_obj

a plotly object

original_data

A dataset with two columns

changepoint_data

The output of gfpop::gfpop() with original_data

Value

A list of 3 objects: "plot" (the plotly plot with changepoints added), "changepoint_annotations", and "changepoint_annotations_regions"