plot_daily: Plot daily data points

View source: R/decade.R

plot_dailyR Documentation

Plot daily data points

Description

Plot daily data points for custom intervals.

Usage

plot_daily(
  dailydata,
  len = 1,
  outfile,
  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.

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

plot_daily(Rosario$Tx, len = 2, outfile = paste0(tempdir(),"/test.pdf"))


dataresqc documentation built on April 3, 2023, 5:08 p.m.