Skip to contents

xs_area() creates an area plot of the cross-section, using ggplot2::geom_ribbon(). Currently, small inaccuracies exist if the channel bed crosses the y-intercept created by baseline, but this function is for visualization only. This will (hopefully) be fixed in a future version of this package.

Usage

xs_ribbon(
  .data,
  x_cor = "TAPE",
  depth = "InvertRod",
  baseline = "Bankful",
  ...
)

Arguments

.data

A data.frame of cross-section data

x_cor

A column of x-coordinates (default, TAPE)

depth

A column of rod readings, relative to 0 (i.e. >0) (default, InvertRod)

baseline

A column of baseline readings (default, Bankful)

...

Other arguments passed on to methods.

Value

An object of class ggplot