plot_daily: Plot daily data points

Description Usage Arguments Details Author(s) References Examples

View source: R/decade.R

Description

Plot daily data points for custom intervals.

Usage

1
2
plot_daily(dailydata, len = 1, outfile = NA, startyear = NA,
  endyear = NA, miss = TRUE, units = NA, ...)

Arguments

dailydata

A character string giving the path of the input file, or a 5-column matrix with following columns: variable code, year, month, day, and the daily value.

len

Integer indicating the number of years shown in each panel.

outfile

Character string giving the path of the output pdf file. By default a file named after the analysed variable is created in the working directory.

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.

miss

If TRUE (the default), missing data are plotted as red crosses at the bottom of the plot.

units

Character string giving the units (will be printed in the y-axis). If dailydata is a path to a file, then the units are read from the SEF header.

...

Graphical parameters passed to the function plot, such as cex, lwd, pch, col, etc. (see par).

Details

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

Missing data are shown as red dots at the bottom of the plot.

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

1
plot_daily(Rosario$Tx, len = 2)

C3S-Data-Rescue-Lot1-WP3/C3S-QC documentation built on Jan. 15, 2020, 10:36 p.m.