Learn R Programming

hydraulics (version 0.7.0)

xc_circle: Creates a cross-section plot for a partially filled pipe

Description

This function plots a cross-section of a circular pipe, shaded as filled to the level indicated by the depth and diameter values passed to it.

Usage

xc_circle(y = NULL, d = NULL, units = c("SI", "Eng"))

Value

a cross-section diagram

Arguments

y

water depth [\(m\) or \(ft\)]

d

pipe diameter [\(m\) or \(ft\)]

units

character vector that contains the system of units [options are SI for International System of Units and Eng for English (US customary) units.

Author

Ed Maurer

Examples

Run this code

# Draw a cross-section with diameter 1.0 and depth 0.7
xc_circle(y = 0.7, d = 1.0, units = "SI")

Run the code above in your browser using DataLab