View source: R/peak_detection.R
peak_detection | R Documentation |
This wrapper function calls the following functions in correct order:
check_pretreat()
, pretreatment_data()
,
SeriesDetrend()
, global_thresh()
or
local_thresh()
, Plot.Anomalies()
,
and Plot_ReturnIntervals()
.
peak_detection(
series = NULL,
out = "accI",
series_name = NULL,
check_series = TRUE,
interp_missing = TRUE,
proxy = NULL,
first = NULL,
last = NULL,
yrInterp = NULL,
smoothing_yr = 500,
detr_type = "mov.median",
thresh_type = "local",
thresh_value = 0.95,
t_lim = NULL,
noise_gmm = 1,
keep_consecutive = F,
min_CountP = 0.05,
MinCountP_window = 150,
out_dir = NULL,
plotit = TRUE,
x_lim = t_lim,
plot_crosses = TRUE,
plot_x = TRUE,
plot_neg = FALSE,
sens = TRUE,
smoothing_yr_seq = NULL
)
series |
A |
out |
Desired return value:
|
series_name |
A character string defining typically the site name
( |
check_series |
Logical. If |
interp_missing |
Logical. Specifies whether the function
interpolates missing values. By default
|
proxy |
Select variable for the peak-detection analysis
with |
first , last |
Age boundaries of the resampled time serie.
If unspecified ( |
yrInterp |
Resolution of the resampled timeseries. |
smoothing_yr |
Smoothing-window width (in years) used for:
|
detr_type |
Smoothing function used:
|
thresh_type |
Determines whether to use a single 'global' GMM,
or local GMMs to determine the threshold.
Defaults to |
thresh_value |
Determines threshold as the nth-percentile
of the Gaussian Model of the noise component.
Defaults to |
t_lim |
Allows defining a portion of the time series.
With |
noise_gmm |
Determines which of the two GMM components
should be considered as the noise component.
This is only needed if |
keep_consecutive |
Logical. If |
min_CountP |
Probability that two resampled counts could arise
from the same Poisson distribution.
Defaults to |
MinCountP_window |
Width (in years) of the search window
used for the minimum-count test.
Defaults to |
out_dir |
Path to the output directory
where |
plotit |
Logical. If |
x_lim |
Age limits of the x-axis scale (the time scale).
By default, |
plot_crosses |
Logical. If |
plot_x |
Logical. If |
plot_neg |
Logical. If |
sens |
Logical. Determines whether a sensitivity analysis is performed.
This involves performing the peak-detection analysis
with different smoothing-window widths ( |
smoothing_yr_seq |
The smoothing-window widths used
for the sensitivity analysis.
If |
Walter Finsinger
## Not run:
co <- tapas::co_char_data
co_loc <- tapas::peak_detection(co, proxy = "char")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.