powered by
Function to add a point and the corresponding perpendicular lines to all three sides to an existing (barycentric) plot.
triperplines(x, y = NULL, z = NULL, lcol = "red", pch = 17, ...)
a 2-column-matrix containing plot coordinates.
fraction of first component OR 3-element vector (for all three components, omitting y and z).
y
z
(optional) fraction of second component.
(optional) fraction of third component.
line color
plotting character. pch = 0 for no point
pch = 0
Further graphical parameters (see points, lines and par).
points
lines
par
Christian Röver, roever@statistik.tu-dortmund.de
Adds a (single!) point and lines to an existing plot (generated by triplot). The lines originate from the point and run (perpendicular) towards all three sides. The lengths (and proportions) of these lines are identical to those of x, y and z.
triplot
x
triplot, tripoints, trilines, tritrafo
tripoints
trilines
tritrafo
triplot() # empty plot triperplines(1/2, 1/3, 1/6)
Run the code above in your browser using DataLab