plot_weekly_cycle: Plot weekly cycle

View source: R/decade.R

plot_weekly_cycleR Documentation

Plot weekly cycle

Description

Check if there is a significant weekly cycle in daily precipitation data by means of a binomial test.

Usage

plot_weekly_cycle(dailypcp, outpath, p = 0.95)

Arguments

dailypcp

A character vector giving the paths of the input files, or a list of 5-column matrices with following columns: variable code (must be 'rr'), year, month, day, value. The names of the list elements are assumed to be the station IDs.

outpath

Character string giving the path for the output files.

p

Probability threshold for the binomial test (default is 0.95).

Details

The input files must follow the C3S Station Exchange Format (SEF).

Creates one pdf for each station ('weekly.ID.pdf') plus one pdf with an overview of the entire dataset ('weekly.pdf').

Author(s)

Stefan Hunziker, Yuri Brugnara

References

Hunziker et al., 2017: Identifying, attributing, and overcoming common data quality issues of manned station observations. Int. J. Climatol, 37: 4131-4145.

Hunziker et al., 2018: Effects of undetected data quality issues on climatological analyses. Clim. Past, 14: 1-20.

Examples

plot_weekly_cycle(list(Rosario = Rosario$rr), outpath = tempdir())


c3s-data-rescue-service/dataresqc documentation built on April 10, 2023, 4:18 p.m.