Learn R Programming

rysgran (version 1.1)

pejrup.plot: Generates the Structure of Pejrup Ternary Diagram

Description

Generates the structure of Pejrup ternary diagram that may be used by rysgran.ternary function

Usage

pejrup.plot(x = x, lang = lang, axis.labels = axis.labels,
    show.names = show.names, show.lines = show.lines,
    show.legend = show.legend, show.grid = show.grid,
    cex.axis = cex.axis, cex.names = cex.names,
    col.labels = col.labels, col.axis = col.axis,
    col.names = col.names, col.lines = col.lines,
    col.grid = col.grid, lty.grid = par("lty"))

Arguments

x
a 3 columns matrix with percentages of Sand, Silt and Clay which should be passed by class.percent function. The sum of each row must be 100 or 1, otherwise there may be distortions in the position of
lang
language . Could be english ("en-US", "en-GR", "eng", "e"), or portuguese ("pt-BR", "pt-PT", "port", "p"). The default is "en-US"
axis.labels
vector of length 3 with the soil textures names. If NULL, the names are taken from the matrix of percentages. Default is NULL
show.names
logical. If TRUE the textural classes names will show up in the ternary diagram. Should be used with the argument show.legend. Default is TRUE
show.lines
logical. If TRUE the lines that separate the textural classes are displayed. Default is TRUE
show.legend
logical. If TRUE the legend of textural classes are displayed in the top left. Should be used with the argument show.names. Default is TRUE
show.grid
logical. If TRUE display grid lines in the ternary diagram. Default is FALSE
cex.axis
character expansion for axis labels. Default is "1"
cex.names
character size of text of textural classes text which composes the ternary diagram. Default is "1"
col.labels
text color of labels. Default is "black"
col.axis
text color of axis labels. Default is "black"
col.names
text color of textural classes which composes the ternary diagram if the argument show.names is TRUE. Default is "gray"
col.lines
color of lines that separate the textural classes case the argument show.lines is TRUE. Default is "black"
col.grid
color of grid lines case the argument show.grid is TRUE. Default is "gray"
lty.grid
type of grid line case the argument show.grid is TRUE. Default is "3"

Value

Details

The arguments are passed by the rysgran.ternary function. To generate the Pejrup ternary diagram in the rysgran.ternary function, the user must set the 'method' argument to "pejrup"

References

- Pejrup, M. (1988) The triangular diagram used for classification of estuarine sediments: a new approach. in: Tide-influenced sedimentary environments and facies. BOER, P.L. ; GELDER, A. & NIO, S.D. (Eds). D. Reidel Publishing Company. Holland.

See Also

gran.stats, class.percent, rysgran.ternary, rysgran.hist,rysgran.plot

Examples

Run this code
#Pejrup diagram
library(rysgran)
data(camargo2001)
tab<-camargo2001
percent <- class.percent(tab, mode="total", empty.col=FALSE, lang='en-US')
rysgran.ternary  (x = percent[2:4], method = "pejrup")

Run the code above in your browser using DataLab