The first baseline for
val is the median of the first 8 useful
val. It stretches from the first useful observation to
the 8th useful observation and is often black. A second line of the same value
is usually extended from the beginning of the black line to the end of
val. This second line is for visual comparison later in
is usually grey.
sus(val, trigger = 9)
Number of data points required to create a sustained shift.
If a sustained shift is detected after the first 8 useful data points, the
baseline is redrawn using the first 8 useful observations in the sustained
shift. Given a vector
val the function
sus() returns both the
grey and black lines in a
A data.frame with two columns: 1. The median of the first n useful
observations of a sustained shift (where n defaults to 8) 2: The same as the
previous column, but with each median value extended to either the end of
val or the beginning of the next sustained shift.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.