Learn R Programming

EBASE (version 1.1.0)

ebase_plot: Plot results from EBASE

Description

Plot results from EBASE

Usage

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

Value

A ggplot

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

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

Run this code
# plot instantaneous
ebase_plot(exres)

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

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

Run the code above in your browser using DataLab