View source: R/fct_changepoint_plot_helpers.R
add_changepoints | R Documentation |
Adds changepoints annotations to a plotly plot.
add_changepoints(plotly_obj, original_data, changepoint_data)
plotly_obj |
a plotly object |
original_data |
A dataset with two columns |
changepoint_data |
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.