Visualization
mcplot
is a utility function to visualize change points. If you plot the time series without any change points, you get a plain plot:
using ChangePointMean
using Plots
ts = [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 3, 3, 3, 3, 3]
mcplot(ts)
If you call it with change points, the plot is divided into segments:
mcplot(ts; chgpts = mcpall(ts))