tripoints | R Documentation |
Function to add points or lines to an existing (barycentric) plot.
tripoints(x, y = NULL, z = NULL, ...)
trilines(x, y = NULL, z = NULL, ...)
x |
Vector of fractions of first component
OR 3-column matrix containing all three components (omitting |
y |
(optional) vector of fractions of second component. |
z |
(optional) vector of fractions of third component. |
... |
Further graphical parameters (see |
Adds points or lines to an existing plot (generated by triplot
).
Christian Röver, roever@statistik.tu-dortmund.de
points
, lines
, triplot
, tritrafo
, centerlines
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.