View source: R/contraction_dilation.R
ggplot_simpleshear_contraction | R Documentation |
Function returns a plot with a simple shear-deformed element filled with soil particles, starting off in a loose state and densifying with deformation
ggplot_simpleshear_contraction( u = 1, width = 1, n = 4, nc = 91, crop = TRUE, marg = 0.02, color_water = "#2a7fff", color_soil = "#d3bc5f", size_water = 1, size_soil = 0.5 )
u |
relative shear displacement, between 0 (no deformation, loose) and 1 (max deformation, dense) |
width |
width of the sample relative to its height |
n |
number of grains to use over the sample height |
nc |
number of vertices for plotting circles for grains |
crop |
if 'TRUE', only parts of particles that are present within the element of soil are plotted. If 'FALSE', also the parts of the particles that are sticking out are plotted |
marg |
plot margins, relative to the height of the soil sample |
color_water |
color for soil particles |
color_soil |
color for water |
size_water |
line thickness for water/soil element |
size_soil |
line thickness for soil particles |
a ggplot object
ggplot_simpleshear_contraction(u = 0, n = 3) ggplot_simpleshear_contraction(u = 1, n = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.