plotly_stressprofile_horizontal_sigmav: Plotly historic and current vertical stress traces

View source: R/stress_profiles_horizontal.R

plotly_stressprofile_horizontal_sigmavR Documentation

Plotly historic and current vertical stress traces

Description

Plots two traces of vertical effective stress in a single plotly plot

Usage

plotly_stressprofile_horizontal_sigmav(
  z,
  sigma_v0,
  sigma_v,
  ylab = "Depth [m]",
  xlim = c(0, NA),
  ylim = c(NA, NA),
  mode = "lines",
  line_colour = c("#ff0000", "#ff0000"),
  line_type = c("dash", "solid"),
  line_name = c("Historic", "Current"),
  line_width = 1.5,
  nround = 2
)

Arguments

z

array width depths

sigma_v0

array with previously largests vertical effective stress at depths 'z'

sigma_v

array with current vertical effective stress at depths '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_sigmav(
  ds$z,
  ds$`sigma'_v0`,
  ds$`sigma'_v`
)

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