plotly_soilprofile: plotly soil profiles

View source: R/stress_profiles_vertical.R

plotly_soilprofileR Documentation

plotly soil profiles

Description

Creates a plotly object with the soil profile and soil properties

Usage

plotly_soilprofile(
  z_soil = c(0, 3, 6),
  z_watertable = 3,
  z_max = 10,
  gamma_b = 19,
  gamma_w = 10,
  q = 0,
  description = NULL,
  phi_deg = NULL,
  ylim = c(NA, NA),
  ylab = "Depth [m]",
  fill_soildry = "#d3bc5f",
  fill_soilwet = "#aebab7",
  fill_water = "#2a7fff",
  colour_soil = "#65571d",
  colour_water = "#2a7fff",
  colour_surcharge = "#6a0dad",
  line_water = "dash",
  line_width = 2,
  nround = 1,
  fields_hover = c("description", "gamma_b", "phi_deg", "thickness"),
  fields_label = c("gamma_b", "phi_deg"),
  arrow_size = 0.1,
  arrow_n = 6,
  title = NULL,
  ...
)

Arguments

z_soil

depth of top of each layer

z_watertable

depth of the water table

z_max

maximum depth of interest

gamma_b

unit weight of soil, in kN/m3. Should be a scalar or a vector with the same length as 'z_soil'

gamma_w

unit weight of water: 10 kN/m3

q

surcharge at soil surface

description

soil description: will be shown in hoverlabel

phi_deg

angle of internal friction: will be shown in text and hoverlabels

ylim

depth axis limits

ylab

depth axis label

fill_soildry

fill colour for dry soil

fill_soilwet

fill colour for wet soil

fill_water

fill colour for ponding water

colour_soil

line color for soil polygons

colour_water

line color for water table

colour_surcharge

color of surcharge arrows and label

line_water

line type for water table

line_width

line tickness

nround

number of decimals in plotly hoverlabels

fields_hover

field names to show in hoverlabels

fields_label

field names to plot in permanent text labels

arrow_size

relative length of surcharge arrows

arrow_n

number of surcharge arrows to use

title

plot title

...

additional fields used for plotting labels

Examples

#ponding water
plotly_soilprofile(
  z_soil = 0,
  z_max = 5,
  z_watertable = -5,
  gamma_b = 20
)

#water table within soil
plotly_soilprofile(
  z_soil = c(0, 3, 7),
  gamma_b = c(15, 16, 20),
  z_watertable = 2,
  description = c("sand", "clay", "gravel"),
  phi_deg = c(0, 10, 30),
  q = 10,
  title = "Test"
)

GJMeijer/soilmech documentation built on May 22, 2022, 10:39 a.m.