plotly_stressprofile_horizontal_k0: Plotly K0 traces with depth

View source: R/stress_profiles_horizontal.R

plotly_stressprofile_horizontal_k0R Documentation

Plotly K0 traces with depth

Description

Plots traces of K0 (current coefficient of lateral earth pressure) and K0NC (coefficient of lateral earth pressure in the normally consolidated case) with depth in a single plotly plot

Usage

plotly_stressprofile_horizontal_k0(
  z,
  K0,
  K0NC,
  ylab = "Depth [m]",
  xlim = c(0, NA),
  ylim = c(NA, NA),
  mode = "lines",
  line_colour = c("#FF0000", "#707070"),
  line_type = c("solid", "dash"),
  line_name = c("Current", "Normally consolidated"),
  line_width = 1.5,
  nround = 3
)

Arguments

z

array width depths

K0

current coefficient of lateral pressure for each depth 'z'

K0NC

normally consolidated coefficient of lateral pressure for each depth 'z'

ylab

depth axis label

xlim

manually override stress axis limits

ylim

manually override depth axis limits

mode

plotly plotting mode, e.g. 'lines' or 'lines+markers'

line_colour

array with two colors

line_type

array with two plotly line styles

line_name

names for the two traces

line_width

line width

nround

number of digits for rounding hoverlabels

Value

a plotly object

Examples

ds <- horizontal_stress_profile(q0 = 50)
plotly_stressprofile_horizontal_k0(
  ds$z,
  ds$K0,
  ds$K0NC
)

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