plot.fluss {flux} | R Documentation |
Functions for bulk plotting of concentration change with time as kind of diagnostic plots for flux rate calculations
Description
Bulk plotting of concentration change with time adding color and symboling
for acting as a diagnostic plot for the flux rate estimation functions
(flux
, flux.odae
, flux.conv
) in
this package.
Usage
## S3 method for class 'fluss'
plot(x, subs, dims, folder = getwd(), xlims = NULL, ...)
## S3 method for class 'flux'
plot(x, zero.line, note = "", margin = 0.2, xlims = NULL, ...)
## S3 method for class 'fluxes'
plot(x, dims, ghg = "all", subs = NULL, folder = getwd(),
xlims = NULL, ask = TRUE, ...)
## S3 method for class 'fluxx'
plot(x, ...)
## S3 method for class 'fluxxes'
plot(x, dims, subs = NULL, folder = getwd(), ask = TRUE, ...)
Arguments
x |
Object of class |
subs |
Single character value or character value specifying the factors that shall be used for subsetting the plots into plates (that are stored as pdf files to a folder specified in |
dims |
Integer vector with two elements that specify the mfrow setting (see |
folder |
Character string giving the path to the folder were the files have to be stored. The names of the pdf files are generated automatically. |
xlims |
Two entry numeric vector specifying the x-axes limits for all plots. Defaults to NULL in which case it is derived from the data itself. The y-axes limits are always set according to the range of the concentration data |
... |
further arguments passed through to |
zero.line |
The y-axes position of a horizontal line that reflects the ambient concentration of the plotted gas species. When using |
note |
A note that shall appear in the plots. Typically not a fixed value but a value that changes from plot to plot. See example. |
margin |
Numeric between 0 and 1. Specifies the empty space within the diagnostic plots on the y-axis. |
ghg |
Character value or an up to three entry vector specifying which ghg should be plotted. Note that only ghg fluxes that were estimated can be plotted. |
ask |
Logical; if TRUE, the user is asked before starting to plot the concentration data for the next ghg, see |
Details
Typically plot.fluss
will be used. However, for lower level plotting the function plot.flux
that also does the plotting within plot.fluss
is provided as a separate function.
Value
The function is invoked for its side effects and does not return anything.
Author(s)
Gerald Jurasinski <gerald.jurasinski@uni-rostock.de>
See Also
chop
, flux
, flux.odae
, flux.conv
Examples
## load example data
data(tt.pre)
## extract field concentration measurements
gcd <- tt.pre[tt.pre$sampletype_a=="P",]
## partition the data into data tables per chamber measurement
# then do the partitioning
gcd.parts <- chop(gcd, factors = c("date", "spot", "veg"),
nmes = c("date", "veg", "spot"))
## calculate flux rates for methane
# first define CH4 range limit (alternatively use flux.calib)
CH4.lim <- 30
# do the flux rate estimation
vp.CH4 <- list(CH4 = "CH4ppb", time = "time_min", CH4.gcq = "CH4Code",
volume = "cham_vol", t.air = "temp_dC", area = "cham_area", p.air = 101325)
flux.CH4 <- flux(gcd.parts, var.par = vp.CH4, co2ntrol = NULL,
range.lim=CH4.lim)
## look at the results table
flux.CH4
## plot the concentration-change-with-time-plots as kind of diagnostic
plot(flux.CH4, dims = c(3,6))