plotResp: plotResp

Description Usage Arguments Author(s) Examples

View source: R/plotting.R

Description

plot a single time series, and the fit

Usage

1
2
3
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

1
2
3
4
5
6
7
8
9
#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" )

RespChamberProc documentation built on June 23, 2017, 3 p.m.