[R] Negative value on ternaryplot

Greg Snow Greg.Snow at intermountainmail.org
Thu May 18 20:36:54 CEST 2006


There are also the functions: triangle.plot in package ade4, triplot in
package TeachingDemos, tri in package cwhtool, and soil.texture in
package plotrix.  Perhaps one of these other functions will work better
for you (all do the triangular plots, each with different bells and
whistles).

triplot from TeachingDemos has an option to add to an existing plot (the
idea being that you already created one triplot and are now adding more
points/lines to it).  You could set up your own plot and axes then use
triplot with add=TRUE to plot your points.

If none of those work for you then you could look at the source code of
any of them to see what modifications would help.   

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Poizot Emmanuel
Sent: Thursday, May 18, 2006 7:05 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Negative value on ternaryplot

Dear all,
I found a wonderful package (vcd) able to plot ternary diagrams, i.e. 
ternaryplot (thanks D. Meyer).
The problem is that one of three variable has negative values.
If I use the ternaryplot function but some points are outside the
triangle, as value en negative.
Is it possible to make the ternary diagram fit exactly the cloud points
?
Regards

------------------------------------------------
Emmanuel Poizot
Cnam/Intechmer
B.P. 324
50103 Cherbourg Cedex

Phone (Direct) : (00 33)(0)233887342
Fax : (00 33)(0)233887339




More information about the R-help mailing list