plotDurationUncertainty: plotDurationUncertainty

View source: R/duration.R

plotDurationUncertaintyR Documentation

plotDurationUncertainty

Description

plot the increase of uncertainty with decreaseing measurement duration

Usage

plotDurationUncertainty(ds, colTime = "TIMESTAMP", 
    fRegress = c(exp = regressFluxExp, lin = regressFluxLinear, 
        tanh = regressFluxTanh), ..., durations = seq(max(65, 
        resFit0$tLag), max(times0), length.out = nDur + 
        1), nDur = 20, maxSdFlux = 1)

Arguments

ds
colTime

column name of time [s]

fRegress
...

further arguments to calcClosedChamberFlux

durations
nDur

number of durations to check

maxSdFlux

maxium allowed standard deviation of flux in [mumol/s]

Details

Produces a plot with standard deviation of the flux estimate versus the duration of the measurment. The lines correspond to the given maxium acceptable standard deviation and the duration that matches this criterion.

Value

tibble result of calcClosedChamberFlux for the minimum duration, with additional component

statAll

tibble: each row a fit for a given duration

Author(s)

Thomas Wutzler, Oscar Perez Priego

Examples

#data(chamberLoggerEx2)
ds <- subset(chamberLoggerEx2, iChunk == 99)	
#plot( CO2_dry ~ TIMESTAMP, ds )
resDur <- plotDurationUncertainty( ds, colTemp = "AirTemp", volume = 0.6*0.6*0.6
	, maxSdFlux = 0.8
	, nDur = 10
	, durations = c(100,120,150)
)
resDur$duration
#plot( flux ~ duration, resDur$statAll[[1]] )
#plot( sdFlux ~ duration, resDur$statAll[[1]] )

bgctw/RespChamberProc documentation built on Jan. 4, 2024, 6:12 a.m.