Renders a ggcpt result (or any ggplot built from one) as an
interactive HTML widget via plotly, with values on hover. A thin
convenience wrapper: the static autoplot() path is untouched.
Arguments
- x
A
ggcptobject or a ggplot object.- ...
Additional arguments passed to
autoplot()whenxis aggcptobject.
Examples
if (FALSE) { # requireNamespace("plotly", quietly = TRUE) && interactive()
res <- cpt_detect(c(rnorm(50), rnorm(50, 5)), method = "pelt")
ggcpt_interactive(res)
}
