Weight Percentages of Textural Classes

Share:

Description

Calculates the percentage of weight retained on each sieve and its corresponding textural class

Usage

1
2
class.percent(data,mode = "both", 
    empty.col = FALSE, lang = "en-US")

Arguments

data

a data matrix with grain size samples

mode

shape of textural classes matrix. mode="total" shows grouped classes of gravel, sand, silt and clay. mode="classes" shows the subclasses like fine sand, coarse silt and medium clay. mode="both" shows both the grouped classes as subclasses. Default is "both"

empty.col

logical. If TRUE empty columns (with zero percent) are displayed. Default is FALSE

lang

language . May be english ("en-US", "en-GR", "eng", "e"), or portuguese ("pt-BR", "pt-PT", "port", "p"). The default is "en-US"

Details

The particle size matrix used in data entry must contain the first line of grain size classes (logarithmic or geometric scale), each following line should contain the weights of a sample. . No header should be used.
For further details on the structure of the input table see data examples camargo2001, sed.phi and sed.metric included in this package

Value

An array of variable dimension, depending on the chosen arguments, with the relative percentages of textural classes for each sample. This matrix should be used in ternary diagrams like Shepard and Pejrup by rysgran.ternary function, available in this package

Author(s)

Eliandro R. Gilbert (eliandrogilbert@gmail.com)
Mauricio G. Camargo (camargo.ufpr@gmail.com)

See Also

rysgran.ternary , gran.stats

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#testing the different modes

library(rysgran)
data(camargo2001)

class.percent(camargo2001, mode="total", empty.col=FALSE, lang="en-US")

class.percent(camargo2001, mode="classes", empty.col=FALSE, lang="en-US")

class.percent(camargo2001, mode="both", empty.col=FALSE, lang="en-US")