plot_density: Plot density of differences

Description Usage Arguments Value

View source: R/functions_plot.R

Description

plot_density plots the density of the value differences between two time stamps. In addition, the threshold values used to classify outliers are shown.

Usage

1
plot_density(df, low, high, limit_val = 20, frost_thr, reso)

Arguments

df

input data.frame.

low

numeric, low threshold defining outliers. Inherited of the function calcflagmad.

high

numeric, high threshold defining outliers. Inherited of the function calcflagmad.

limit_val

numeric, defines the x-axis limits of the density plot. The x-axis limits are drawn at limit_val * threshold. Threshold values are inherited of the function calcflagmad.

frost_thr

numeric, increases the thresholds for outlier and jump detection in periods of probable frost (i.e. temperature < lowtemp). The thresholds are multiplied by the value provided.

ran

numeric, range of rows in df considered for the density plot. Compatible with different window sizes for data processing.

plot_export

logical, defines whether plots are exported or shown directly in the console.

Value

Plots are saved to current working directory as density_plot.pdf.


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