Learn R Programming

hydraulics (version 0.2.0)

xc_trap: Creates a cross-section plot for an open channel

Description

This function plots a cross-section of a (trapezoid, rectangle, triangle), shaded as filled to the level indicated by the values passed to it.

Usage

xc_trap(y = NULL, b = NULL, m = NULL)

Arguments

y

water depth

b

bottom width

m

side slope (H:1)

Value

a cross-section diagram

Examples

Run this code
# NOT RUN {
# Draw a cross-section with depth 1, width 2, side slope 3:1 (H:V)
xc_trap(y = 1.0, b = 2.0, m = 3.0)

# }

Run the code above in your browser using DataLab