plot.not | R Documentation |
Plots the input vector used to generate 'not' object x
with the signal fitted with predict.not
.
## S3 method for class 'not' plot(x, ...)
x |
An object of class 'not', returned by |
... |
Further parameters which may be passed to |
predict.not
not
features
# **** Piecewisce-constant mean with Gaussian noise. x <- c(rep(0, 100), rep(1,100)) + rnorm(100) # *** identify potential locations of the change-points w <- not(x, contrast = "pcwsConstMean") # *** when 'cpt' is omitted, 'features' function is used internally # to choose change-points locations plot(w) # *** estimate and plot the signal specifying the location of the change-point plot(w, cpt=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.