Learn R Programming

plotrix (version 2.0.3)

get.triprop: Enter three proportion data - usually soil textures.

Description

get.triprop allows the user to enter triplets of proportions or percentages of three components such as sand, silt and clay in soils.

Usage

get.triprop(use.percentages=FALSE,cnames=c("1","2","3"))

Arguments

use.percentages
Logical - whether to treat the entries as percentages and scale to proportions.
cnames
column names for the resulting three column matrix.

Value

  • A matrix of the components of one or more observations.

Details

The three proportions of each row must sum to 100 or 1 within 1 the function will warn the operator.

See Also

triax.plot, soil.texture

Examples

Run this code
if(dev.interactive()) {
  # get the default proportions for soil textures
  newsp<-get.triprop()
  # show the soil triangle
  soil.texture()
  # now plot the observations
  show.soil.texture(newsp)
 }

Run the code above in your browser using DataLab