add_changepoints: Adds changepoints annotations to a plotly plot.

View source: R/fct_changepoint_plot_helpers.R

add_changepointsR Documentation

Adds changepoints annotations to a plotly plot.

Description

Adds changepoints annotations to a plotly plot.

Usage

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"


julianstanley/gfpopgui documentation built on April 16, 2022, 2:58 a.m.