fill_plot: Plot gap-filled dendrometer series

Description Usage Arguments Details Value Author(s) Examples

View source: R/fill_plot.R

Description

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

Usage

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

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.

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.

Value

Plot.

Author(s)

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

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))

## End(Not run)

dendrometeR documentation built on May 2, 2019, 6:34 a.m.