rmt_plot.cbud plots a MT3DMS mass budget

# S3 method for cbud
rmt_plot(
  cbud,
  btn,
  icomp = 1,
  what = "cumulative",
  fluxes = "all",
  net = FALSE,
  type = "area",
  final = FALSE
)

Arguments

cbud

RMT3DMS cbud object as obtained by rmt_read_bud

btn

RMT3DMS btn object

icomp

integer selecting for which species to plot the budget; defaults to 1

what

character; what to plot, "cumulative", "total", "difference" or "discrepancy". Defaults to "cumulative".

fluxes

character; either "all" or a character vector with the flux components to plot. Only used when what is "cumulative"

net

logical; if TRUE, it sums the inflows and outflows of the flux component to plot the net fluxes. If FALSE, it will plot both the inflows and outflows. Only used when what is "cumulative" or "total".

type

character; plot type. Either "bar" or "area".

final

logical; should only the final mass budget be plotted? Defaults to FALSE

Value

ggplot2 object