Plots the input vector used to generate 'sbs' object x
with fitted piecewise constant function, equal to the mean
between change-points specified in cpt
.
# S3 method for sbs
plot(x, cpt, ...)
an object of class 'sbs', returned by sbs
a vector of integers with localisations of change-points
other parameters which may be passed to plot
and changepoints
When cpt
is omitted, the function automatically finds change-points
using changepoints
function with a default value of the threshold.