Plot daily data points for custom intervals.
plot_daily(
dailydata,
len = 1,
outfile,
startyear = NA,
endyear = NA,
miss = TRUE,
units = NA,
...
)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.
Integer indicating the number of years shown in each panel.
Character string giving the path of the output pdf file.
First year to plot. If not indicated, all available years
until endyear will be plotted.
Last year to plot. If not indicated, all available years
since startyear will be plotted.
If TRUE (the default), missing data are plotted as red crosses at the bottom of the plot.
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).
Stefan Hunziker, Yuri Brugnara
The input file must follow the C3S Station Exchange Format (SEF).
Missing data are shown as red dots at the bottom of the plot.
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.
plot_daily(Rosario$Tx, len = 2, outfile = paste0(tempdir(),"/test.pdf"))
Run the code above in your browser using DataLab