Learn R Programming

geotech (version 1.0)

soilProfile: Plot of Soil Profile

Description

This function creates a plot of a soil profile.

Usage

soil.profile(thk = NA, depth = NA, zw, type = NA, gamma = NA, phi = NA, C = NA, title = "Soil Profile", metric)

Arguments

thk
vector of layer thicknesses (ft or m)
depth
vector of layer bottom depths (ft or m)
zw
depth of groundwater table (ft or m)
type
vector of soil types (character strings)
gamma
vector of unit weights (pcf or kN/m^3)
phi
vector of soil friction angles (deg)
C
vector of soil cohesion (psf or kPa)
title
desired title of plot (deafult: "Soil Profile")
metric
logical variable: TRUE (for metric units) or FALSE (for English units)

Value

This function creates a plot of a soil profile; no numerical values are returned.

Details

  • Either layer thicknesses or depth to layer bottoms must be specified.
  • The only necessary variables are thk (or depth), zw, and metric. All other variables are optional.

Examples

Run this code
##  Example code for plot of a soil profile
soil.profile(depth = c(20, 40, 52, 60), zw = 20, type = c("Dry Sand",
             "Saturated Sand", "Soft Clay", "Dense Gravel"),
             gamma = c(110, 115, 120, 150), phi = c(30, 30, NA, 38),
             C = c(NA, NA, 300, NA), metric = FALSE)

Run the code above in your browser using DataLab