Description Usage Arguments Value
View source: R/Analyse_real_data.R
Show spikes relative to raw data.
1 2 3 4 5 6 7 8 9 10 | show_spikes(
data,
transients = 2000,
time.step = 2,
spike.occur = 0.6,
val.change = NULL,
reset = spike.occur,
closeness = 20,
return.ans = TRUE
)
|
data |
time series data. |
transients |
transient periods where we want to remove spikes. |
time.step |
Vector of time from the time series data, or if step size is regular the time step of the experiment. |
spike.occur |
threshold where we record spikes. |
val.change |
vector of times where the threshold value changes. |
reset |
concentration at which we say a spike is over, default is set to spike.occur. |
closeness |
Value which if two spikes are within this distance they are merged. |
return.ans |
Flag, where if TRUE we return the spikes, else we plot the spikes relative to the raw data. |
Spikes relative to their original position.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.