Description Usage Arguments Details Value Author(s) See Also Examples
This function draws intervals of significance returned by one of the nsp*
functions on the current plot. It shows them as shaded
rectangular areas (hence the name of the function).
1 | draw_rects(nsp.obj, yrange, density = 10, col = "red", x.axis.start = 1)
|
nsp.obj |
Object returned by one of the |
yrange |
Vector of length two specifying the (lower, upper) vertical limit of the rectangles. |
density |
Density of the shading. |
col |
Colour of the shading. |
x.axis.start |
Time index the x axis starts from. The NSP intervals of significance get shifted by |
The NSP algorithm is described in P. Fryzlewicz (2021) "Narrowest Significance Pursuit: inference for multiple change-points in linear models", preprint.
The function does not return a value.
Piotr Fryzlewicz, p.fryzlewicz@lse.ac.uk
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.