Learn R Programming

dataresqc (version 1.1.1)

plot_decimals: Plot decimals

Description

Plot year-by-year distribution of the decimals in order to investigate the actual reporting resolution.

Usage

plot_decimals(Data, outfile, startyear = NA, endyear = NA)

Arguments

Data

A character string giving the path of the input file, or a 5 or 7-column matrix (depending on data type) with following columns: variable code, year, month, day, (hour), (minute), value.

outfile

Character string giving the path of the output pdf file.

startyear

First year to plot. If not indicated, all available years until endyear will be plotted.

endyear

Last year to plot. If not indicated, all available years since startyear will be plotted.

Author

Stefan Hunziker, Yuri Brugnara

Details

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

Only the first digit after the decimal point is analysed. If there is more than one digit, the data will be rounded to the first decimal place.

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

Run this code
plot_decimals(Rosario$Tx, outfile = paste0(tempdir(),"/test.pdf"))

Run the code above in your browser using DataLab