Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tripoints

Barycentric plots


Description

Function to add points or lines to an existing (barycentric) plot.

Usage

tripoints(x, y = NULL, z = NULL, ...)
trilines(x, y = NULL, z = NULL, ...)

Arguments

x

Vector of fractions of first component OR 3-column matrix containing all three components (omitting y and z) OR 3-element vector (for all three components, omitting y and z).

y

(optional) vector of fractions of second component.

z

(optional) vector of fractions of third component.

...

Further graphical parameters (see points and par).

Details

Adds points or lines to an existing plot (generated by triplot).

Author(s)

See Also

Examples

triplot()  # empty plot 
tripoints(0.1, 0.2, 0.7)                        # a point 
tripoints(c(0.2, 0.6), c(0.3, 0.3), c(0.5, 0.1),
    pch = c(2, 6))                              # two points
trilines(c(0.1, 0.6), c(0.2, 0.3), c(0.7, 0.1), 
    col = "blue", lty = "dotted")               # a line 

trilines(centerlines(3))

klaR

Classification and Visualization

v0.6-15
GPL-2 | GPL-3
Authors
Christian Roever, Nils Raabe, Karsten Luebke, Uwe Ligges, Gero Szepannek, Marc Zentgraf, David Meyer
Initial release
2020-02-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.