View source: R/stress_profiles_vertical.R
plotly_soilstressprofile_vertical | R Documentation |
Creates a plotly plot with the soil profile on the left-hand side, and the stress profiles on the right-hand side
plotly_soilstressprofile_vertical( z_soil, z_watertable = 0, z_max = 10, z_interval = NULL, q = 0, gamma_b = 18, traces = c("sigma_v", "u", "sigma'_v"), labelmode = "stressonly", width = 600, height = 300 )
z_soil |
depth of top of each layer |
z_watertable |
depth of the water table |
z_max |
maximum depth of interest |
z_interval |
additional interval at which to calculate stresses |
q |
surcharge at soil surface |
gamma_b |
unit weight of soil, in kN/m3. Should be a scalar or a vector with the same length as 'z_soil' |
traces |
array with traces to be plotted. May contain 'sigma_v' for the total vertical stress, ‘u' for the pore water pressure and 'sigma’_v' for the vertical effective stress |
labelmode |
setting controlling what hoverlabels to plot. If 'stressonly', only the values of stresses are displaced. If 'calculations', it is also shown how to calculate the stress based on the stress value in other points |
width |
width of the output plot |
height |
height of the output plot |
a plotly object
#dry soil - total stress only plotly_soilstressprofile_vertical( z_soil = 0, z_watertable = 20, z_max = 6, z_interval = 1, traces = c("sigma_v") ) #partly saturated soil plotly_soilstressprofile_vertical( z_soil = c(0, 4, 8), z_watertable = 2, z_max = 10, q = 20, gamma_b = c(18, 20, 15), traces = c("sigma_v", "u", "sigma'_v"), labelmode = "calculations" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.