Learn R Programming

dendrometeR (version 1.1.1)

fill_plot: Plot gap-filled dendrometer series

Description

The function creates a plot with gap-filled and original dendrometer series.

Usage

fill_plot(dm.data, dm.gpf, sensor = 1, year = NULL,
          period = NULL)

Value

Plot.

Arguments

dm.data

a data.frame with a timestamp (%Y-%m-%d %H:%M:%S format) as row names, and dendrometer series in columns. Output as created using code from the Import dendrometer data vignette.

dm.gpf

a data.frame with gap-filled dendrometer series as produced by fill_gaps.

sensor

a numeric specifying the sensor to be plotted (by column number). Defaults to 1 (first dendrometer series in both data.frames).

year

a numeric specifying the year(s) to be plotted. Defaults to the first year in the dataset. Two consecutive years (e.g., for a growing season at the Southern Hemisphere) can be defined with year = c(year1, year2).

period

a numeric indicating the period to be plotted, specified using day of year values (begin and end). Defaults to the complete data period.

Author

Olivier Bouriaud, Ernst van der Maaten and Marieke van der Maaten-Theunissen.

Details

The function creates a plot showing the gap-filling results for a single dendrometer series over a specified time window. Although the function is intended to plot short time periods (within a growing season), it can plot two calendar years at maximum (e.g., 2014-2015), thereby allowing the visualization of a complete growing season at the Southern Hemisphere as well.

Examples

Run this code
# \donttest{

data(dmCD)
## creating some artificial gaps (for demonstration purposes):
dmCD[c(873:877,985:990),1] <- NA
dm.gpf <- fill_gaps(dmCD, Hz = 0.01)
fill_plot(dmCD, dm.gpf, period = c(137,144))
# }

Run the code above in your browser using DataLab