plot.SNSeg_Uni {SNSeg} | R Documentation |
Plotting the output for univariate or bivariate time series (testing the change in correlation between bivariate time series)
Description
Plotting method for S3 objects of class SNSeg_Uni
Usage
## S3 method for class 'SNSeg_Uni'
plot(x, cpts.col = "red", ...)
Arguments
x |
a |
cpts.col |
a specification for the color of the vertical lines at the change point estimators, see par |
... |
additional graphical arguments, see plot and abline. Users are allowed to enter their own title for the univariate time series plot. The bivariate time series does not contain this option. |
Details
The location of each change point estimator is plotted as a vertical line against the input time series.
Examples
set.seed(7)
ts <- MAR_Variance(2, "V1")
ts <- ts[,2]
# test the change in a single parameter (variance)
# grid_size defined
result <- SNSeg_Uni(ts, paras_to_test = "variance", confidence = 0.9,
grid_size_scale = 0.05, grid_size = 67,
plot_SN = FALSE, est_cp_loc = TRUE)
plot(result, cpts.col='red')
[Package SNSeg version 1.0.3 Index]