Runs several detectors on the same data and returns a faceted or overlaid
ggplot comparison. Respects future::plan() for parallel execution
if the future.apply package is available.
Arguments
- x
A numeric vector (the data series). A one-column matrix or data frame is accepted; wider input is refused, because these detectors are univariate and flattening the columns would invent a changepoint at every seam. Use
cpt_batch()for a panel of series.- methods
Character vector of method names (passed to
cpt_detect).- layout
Layout type.
"facet"(default) shows one panel per method;"overlay"draws all changepoints in one panel, colour-coded.- change_in
What to detect change in. Passed to each detector.
- seed
Optional seed for reproducible parallelism. Passed to
future.apply::future_lapply()asfuture.seed, and toset.seed()when running sequentially. LeftNULLunder a parallel plan,future.seed = TRUEis used, so the workers get parallel-safe streams but the run is not reproducible.- ...
Additional arguments passed to each detector.

