Soil texture is a key property that influences water retention, drainage, and fertility. It is defined by the relative proportions of sand, silt, and clay in a soil sample. In this example, we'll visualize soil texture on a ternary plot, where each vertex represents one of the three components. By plotting a sample's composition, users can identify its USDA soil texture class and explore how varying sand, silt, and clay proportions affect classification boundaries.
Define soil texture regions geometrically as polygons:
Define some data points representing a set of soil samples, were each entry represents a relative quantity of sediment in the format {sand, clay, silt}: