View source: R/stress_profiles_horizontal.R
plotly_stressprofile_horizontal_sigmah | R Documentation |
Plots two traces of horizontal effective stress in a single plotly plot. One trace is for current state (may be overconsolidated), and one for the normally consolidated case.
plotly_stressprofile_horizontal_sigmah( z, sigma_h, sigma_hNC, 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 = 2 )
z |
array width depths |
sigma_h |
current horizontal effective stress for each depth 'z' |
sigma_hNC |
normally consolidated horizontal effective stress 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 |
a plotly object
ds <- horizontal_stress_profile(q0 = 50) plotly_stressprofile_horizontal_sigmah( ds$z, ds$`sigma'_h`, ds$`sigma'_hNC` )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.