Skip to contents

Plot results from EBASE

Usage

ebase_plot(res, asnem = FALSE, instantaneous = TRUE)

Arguments

res

output data frame from ebase

asnem

logical indicating if NEM is plotted with P and negative R, see details

instantaneous

logical indicating if results are instantaneous (default) or averaged to daily

Value

A ggplot

Details

The plot shows P, R, and D over time as positive values if asnem = F (default). Positive values for D are ingassing, negative outgassing.

If asnem = T, NEM is plotted as a separate line as the difference between P and R. R is shown as negative values to indicate the negative influence on NEM. D is also excluded.

If instantaneous = F, the plot shows daily-averaged values. The y-axis units are the same for daily or instantaneous values.

Examples

# plot instantaneous
ebase_plot(exres)


# plot NEM, negative R, exclude D
ebase_plot(exres, asnem = TRUE)


# plot daily-averaged
ebase_plot(exres, instantaneous = FALSE)