Description Usage Arguments Details Author(s) References See Also Examples
Plot regimes-means (dashed line) against observational series (solid line).
1 |
results.parameter |
output of function |
meta.loc |
the y-coordinate of the x-axis, for the purpose of mark crosses on the x-axis to indicate metadata locations; optional. |
cex |
width (size) of lines and lables. |
file.name |
optional; if specified, then the plot is saved to a .ps file under this file name. |
... |
Arguments to be passed to methods, such as graphical parameters (see |
Metadata times are marked as crosses on the x-axis, if argument meta.loc
is not NULL
.
Yingbo Li
Maintainer: Yingbo Li <ybli@clemson.edu>
Li, Y. and Lund, R. (2014) Bayesian Mulitple Changepoint Detection Using Metadata. (submitted)
Function bcpmeta.parameters
1 2 3 4 5 6 7 8 9 10 | ## Create a time series of length 200 with three mean shifts at 50, 100, 150.
data = simgen(2, 1);
X = data$X[1, ]; ## time series
meta = data$meta; ## locations of metadata times
## Parameter estimation in the configuration where changepoints are time 50 and 99.
results = bcpmeta.parameters(X, meta = meta, eta = c(50, 99), trend = FALSE);
## Plot
cp.plot(results, meta.loc = -0.42, cex = 1.5);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.