Dan Bolser
2006-Apr-03 13:40 UTC
[R] Ternary or Triangular Plots (soil texture triangle plot)?
Hi, I am trying to create a triangular plot to show the 'composition' of a set of items with three variables (historically the percent sand, silt and clay in soil). So far I have tried the 'soil texture triangle plot' in the package plotrix and the 'ternary or triangular plots' in the package cwhtool (cwhmisc). Both have strengths and weaknesses, but neither has a 'standard' or 'generic' feel about it. To save myself time I would like to ask the list if there is a preferred or standard implementation of the triangle plot that will let me, * Label the three axes * Specify a range for the three axis * Label each point with a string * Add lines perpendicular to each axis Or in general if there is an implementation of the triangle plot which supports the standard plotting options. Thanks very much for any pointers, Dan.
Christos Hatzis
2006-Apr-03 13:51 UTC
[R] Ternary or Triangular Plots (soil texture triangle plot)?
You might want to try 'ternaryplot' from the 'vcd' package. I haven't used it myself but it appears to be quite flexible and since it is based on the grid graphics system it is highly extensible. -Christos -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dan Bolser Sent: Monday, April 03, 2006 9:41 AM To: r-help at stat.math.ethz.ch Subject: [R] Ternary or Triangular Plots (soil texture triangle plot)? Hi, I am trying to create a triangular plot to show the 'composition' of a set of items with three variables (historically the percent sand, silt and clay in soil). So far I have tried the 'soil texture triangle plot' in the package plotrix and the 'ternary or triangular plots' in the package cwhtool (cwhmisc). Both have strengths and weaknesses, but neither has a 'standard' or 'generic' feel about it. To save myself time I would like to ask the list if there is a preferred or standard implementation of the triangle plot that will let me, * Label the three axes * Specify a range for the three axis * Label each point with a string * Add lines perpendicular to each axis Or in general if there is an implementation of the triangle plot which supports the standard plotting options. Thanks very much for any pointers, Dan. ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Gregory Snow
2006-Apr-03 17:42 UTC
[R] Ternary or Triangular Plots (soil texture triangle plot)?
There is also the triplot function in the TeachingDemos package that does some of what you want (but always shows the full range 0 to 1 on all axes). I expect that each of the implementations out there does part of what you want and you may need to find which will come closest, or find which is easiest to modify to do all the things you want. -- 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 Dan Bolser > Sent: Monday, April 03, 2006 7:41 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Ternary or Triangular Plots (soil texture triangle plot)? > > > Hi, > > I am trying to create a triangular plot to show the > 'composition' of a set of items with three variables > (historically the percent sand, silt and clay in soil). > > So far I have tried the 'soil texture triangle plot' in the > package plotrix and the 'ternary or triangular plots' in the > package cwhtool (cwhmisc). Both have strengths and > weaknesses, but neither has a 'standard' or 'generic' feel about it. > > To save myself time I would like to ask the list if there is > a preferred or standard implementation of the triangle plot > that will let me, > > * Label the three axes > * Specify a range for the three axis > * Label each point with a string > * Add lines perpendicular to each axis > > Or in general if there is an implementation of the triangle > plot which supports the standard plotting options. > > Thanks very much for any pointers, > > Dan. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >