plot_proc_L2: Plot Changes Between Time-aligned and Cleaned Dendrometer...

Description Usage Arguments Value Examples

View source: R/plot_proc_L2.R

Description

plot_proc_L2 plots changes between time-aligned (L1) and cleaned (L2) dendrometer data to visually evaluate the data cleaning.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_proc_L2(
  dendro_L1,
  dendro_L2,
  plot_period = "full",
  plot_show = "all",
  plot_export = TRUE,
  plot_name = "proc_L2_plot",
  tz = "UTC",
  thr_plot = NULL
)

Arguments

dendro_L1

time-aligned dendrometer data as produced by proc_L1.

dendro_L2

cleaned dendrometer data as produced by proc_dendro_L2.

plot_period

character, specify whether plots should be displayed for the whole period (plot_period = "full"), separately for each year (plot_period = "yearly") or for each month (plot_period = "monthly").

plot_show

character, specify whether all periods should be plotted (plot_show = "all") or only those periods in which L1 dendrometer data changed during data cleaning (plot_show = "diff").

plot_export

logical, specifies whether the plots are exported as a PDF file to the working directory or are plotted in the console.

plot_name

character, specify name of the PDF to which the plots are saved.

tz

specify the desired time zone. Default is "UTC".

thr_plot

data.frame, containing the threshold values used for outlier detection. Command is only used internally by the function proc_dendro_L2.

Value

Plots are saved in a PDF to the current working directory as proc_L2_plot.pdf or as specified in plot_name.

The first panel shows the L1 data, the second panel the cleaned L2 data (in blue) with the L1 data (in grey) in the background. Blue circles indicate interpolated points. Horizontal cyan lines at the bottom of the panel indicate frost periods. The third panel shows the changes (red) as well as the deleted values (pink) on a logarithmic scale. In case plot_period = "monthly", the changes that occurred are numbered. The ID numbers facilitate the reversal of wrong or unwanted corrections with corr_dendro_L2. The last panel shows the tree-water deficit (twd).

Examples

1
2
plot_proc_L2(dendro_L1 = dendro_data_L1, dendro_L2 = dendro_data_L2,
            plot_period = "yearly", plot_export = FALSE)

treenet/treenetproc documentation built on June 16, 2021, 4:39 p.m.