View source: R/plot_summary_print_Uni.R

plot.SNSeg_Uni | R Documentation |

Plotting method for S3 objects of class `SNSeg_Uni`

```
## S3 method for class 'SNSeg_Uni'
plot(x, cpts.col = "red", ...)
```

`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. |

The location of each change point estimator is plotted as a vertical line against the input time series.

```
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')
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.