plotResp: plotResp

View source: R/plotting.R

plotRespR Documentation

plotResp

Description

plot a single time series, and the fit

Usage

plotResp(dsi, resFlux = NULL, colConc = "CO2_dry", 
    colTime = "TIMESTAMP", ylab = "CO2_dry (ppm)", 
    xlab = "Time (s)", label = "")

Arguments

dsi

data.frame of a time series of a single concentration gradient measurement

resFlux

result of calcClosedChamberFlux: a one-row tibble with columns tLag, flux, sdFlux, and model

colConc

column name of measurment variable

colTime

column name of time [s], or POSIXct

ylab

label of y axis

xlab

label of x axis

label

label of the time series

Author(s)

Thomas Wutzler, Oscar Perez Priego

Examples

#data(chamberLoggerEx1s)
dsi <- chamberLoggerEx1s
dsi$Pa <- chamberLoggerEx1s$Pa * 1000  # convert kPa to Pa
conc <- dsi$CO2_dry <- corrConcDilution(dsi)
#trace(regressFluxExp, recover)		#untrace(regressFluxExp)
#trace(calcClosedChamberFlux, recover)		#untrace(calcClosedChamberFlux)
resFlux <- calcClosedChamberFlux(dsi)
plotResp( dsi, label="Example 1" )			# without flux regression
plotResp( dsi, resFlux, label="Example 1" )
#plotResp( as_tibble(dsi), resFlux, label="Example 1" )

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