ggchangepoint: Combines Changepoint Analysis with 'ggplot2'

A unified, tidy, 'ggplot2'-native interface to changepoint detection in R. Provides the 'ggcpt' S3 result class with 'broom'-style tidy/glance/augment methods, 'autoplot()' (with confidence intervals, significance regions, detector statistics, solution paths, scale space, and multivariate facets), composable geoms ('geom_changepoint()', 'geom_cpt_segment()', 'geom_cpt_ci()', 'geom_cpt_region()', 'geom_cpt_label()', 'geom_cpt_event()', 'stat_changepoint()'), and a 'cpt_detect()' dispatcher covering fifty methods with introspection via 'cpt_methods()': penalised/optimal partitioning, multiscale and search methods, nonparametric and kernel methods, Bayesian methods, high-dimensional, functional, covariance and network methods, regression breaks, seasonal-trend decomposition, the classical single-change tests, and robust detection under drift and autocorrelation. Adds inference (Narrowest Significance Pursuit regions, a unified 'cpt_confint()', post-detection tests), selection of the number of changes, influence and sensitivity diagnostics, supervised detection with learned penalties, consensus and method recommendation, event annotation and reproducible reports, benchmarks against the Turing Change Point Dataset, sequential monitoring with detection-delay accounting, power and study design, and an extension mechanism ('as_ggcpt()', 'cpt_register_method()') that brings external and non-CRAN detectors into the same grammar.

Version: 0.5.0
Depends: R (≥ 4.0.0)
Imports: changepoint, changepoint.np, dplyr, ecp, generics, ggplot2 (≥ 3.5.0), lifecycle, Rdpack, stats, tibble, tools, utils
Suggests: rmarkdown, knitr, testthat (≥ 3.1.7), withr, rjags, vdiffr, svglite, wbs, breakfast, not, mosum, fpop, IDetect, stepR, cpop, bcp, ocp, Rbeast, cpm, kcpRS, CptNonPar, DeCAFS, SNSeg, InspectChangepoint, ocd, changepoint.geo, strucchange, segmented, EnvCpt, fastcpd, nsp, mcp, HDCD, changepoints, fChange, KWCChangepoint, fabisearch, NMF, wbsts, bfast, trend, ChangePointTaylor, binsegRcpp, crossvalidationCP, changepoint.influence, penaltyLearning, zoo, xts, tsibble, jsonlite, gt, ggrepel, plotly, ggiraph, progressr, future, future.apply
Published: 2026-09-25
DOI: 10.32614/CRAN.package.ggchangepoint
Author: Youzhi Yu [aut, cre]
Maintainer: Youzhi Yu <yuyouzhi666 at icloud.com>
BugReports: https://github.com/PursuitOfDataScience/ggchangepoint/issues
License: GPL (≥ 3)
URL: https://pursuitofdatascience.github.io/ggchangepoint/
NeedsCompilation: no
Additional_repositories: https://R-Forge.R-project.org
Citation: ggchangepoint citation info
Materials: README, NEWS
In views: TimeSeries
CRAN checks: ggchangepoint results

Documentation:

Reference manual: ggchangepoint.html , ggchangepoint.pdf
Vignettes: Comparing and Evaluating Changepoint Methods with ggchangepoint (source, R code)
Extending ggchangepoint (source, R code)
The ggchangepoint Feature Tour: A Complete Map of the Package Surface (source, R code)
Inference, Selection and Diagnostics (source, R code)
ggchangepoint: A Unified Tidy Interface for Changepoint Analysis in R (source, R code)
Streaming and Online Monitoring (source, R code)
Supervised Changepoint Detection (source, R code)

Downloads:

Package source: ggchangepoint_0.5.0.tar.gz
Windows binaries: r-devel: ggchangepoint_0.4.0.zip, r-release: ggchangepoint_0.4.0.zip, r-oldrel: ggchangepoint_0.4.0.zip
macOS binaries: r-release (arm64): ggchangepoint_0.4.0.tgz, r-oldrel (arm64): ggchangepoint_0.4.0.tgz, r-release (x86_64): ggchangepoint_0.4.0.tgz, r-oldrel (x86_64): ggchangepoint_0.4.0.tgz
Old sources: ggchangepoint archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ggchangepoint to link to this page.

mirror server hosted at Truenetwork, Russian Federation.