soil.texture {plotrix}R Documentation

soil.texture

Description

soil.texture displays a triangular plot area on which soil textures defined as proportions of sand, silt and clay can be plotted. Optional grid, vertex labels, soil type divisions and names may also be displayed. If a matrix of soil textures is present, this will be passed to show.soil.texture and the textures will be plotted.

Usage

 soil.texture(soiltexture=NULL,
 show.names=FALSE,show.lines=FALSE,show.grid=FALSE,bg.names="white",main="",
 col.axis="black",col.names="gray",col.lines="gray",col.grid="gray",...)

Arguments

soiltexture Matrix of soil textures where each row is a soil sample and three columns contain the proportions of the components sand, silt and clay in the range 0 to 1 or percentages in the range 0 to 100.
show.names Logical - whether to show the name of different soil types within the soil triangle.
show.lines Logical - whether to show the boundaries of the different soil types within the soil triangle.
show.grid Logical - whether to show grid lines at each 10 level of each soil component.
bg.names Color to use when drawing a blank patch for the names of soil types. Defaults to white but the user may wish to use the plot background color.
main The title of the soil texture plot. Defaults to none.
col.axis Color of the triangular axes, ticks and labels.
col.names Color of the soil names. Defaults to gray.
col.lines Color of the boundary lines. Defaults to gray.
col.grid Color of the grid lines. Defaults to gray.
... Additional arguments passed to show.soil.texture or points.

Value

If soiltexture was included, a list of the x,y positions of the soil types plotted. If not, nil.

Author(s)

Sander Oom and Jim Lemon

See Also

get.soil.texture, \code{show.soil.texture}

Examples

 data(oksoil)
 # first just show the soil triangle
 soil.texture()
 # now plot a minimal soil triangle with the observations
 soil.texture(oksoil,main="DEFAULT")
 # do it again but with the soil names and boundaries
 soil.texture(oksoil,main="LINES AND NAMES",show.lines=TRUE,show.names=TRUE)
 # again with the grid, legend and specified colors
 soil.texture(oksoil,main="GRID AND LEGEND",show.grid=TRUE,col.symbols=c(4,5,6),
  show.legend=TRUE)

[Package plotrix version 1.3-1 Index]