In both cases, the three elements or columns correspond to what will be plotted at the top, left, and right corners. Most of the functions in ternary.r expect either a 3-column data frame or matrix, or a 3-element vector. One is available through the vcd package, but it offers limited customization, so I’ve developed my own set of ternary diagram functions, available here. R does not come with a built-in ternary diagram function. These proportions of these three main components (quartz, feldspar, lithics) can be recalculated such that they sum to 100% and then plotted on a ternary diagram. For example, sandstones are commonly composed of quartz, two main types of feldspar, and various types of rock fragments called lithics, as well as other types of grains. Ternary diagrams are widely used in geology and other sciences to portray the proportions of three items that are constrained to sum to 100%.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |