Hi, Is anyone on the list familiar with an R implementation of Piper Diagrams? Example: http://faculty.uml.edu/nelson_eby/89.315/IMAGES/Figure%209-78.jpg I am thinking that two calls to triax.plot (plotrix) along with some kind of affine-transformed standard plot would do the trick. Not so sure about the final layout, or a nice generalized version for something like lattice. Cheers, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341
ternaryplot() in the vcd package might help. -- Bert Gunter Genentech Nonclinical Statistics -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Dylan Beaudette Sent: Monday, June 09, 2008 1:36 PM To: R-help at r-project.org Subject: [R] piper diagram Hi, Is anyone on the list familiar with an R implementation of Piper Diagrams? Example: http://faculty.uml.edu/nelson_eby/89.315/IMAGES/Figure%209-78.jpg I am thinking that two calls to triax.plot (plotrix) along with some kind of affine-transformed standard plot would do the trick. Not so sure about the final layout, or a nice generalized version for something like lattice. Cheers, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Dylan Beaudette wrote:> Hi, > > Is anyone on the list familiar with an R implementation of Piper Diagrams? > > Example: > http://faculty.uml.edu/nelson_eby/89.315/IMAGES/Figure%209-78.jpg > > I am thinking that two calls to triax.plot (plotrix) along with some kind of > affine-transformed standard plot would do the trick. Not so sure about the > final layout, or a nice generalized version for something like lattice. >Hi Dylan, You're correct about the lower two triangle plots, triax.plot would handle these (although there would probably be a bit of hacking about to get the two plots in the right place). I don't understand the upper rhombus. As a third triangle plot I can get it, but the bottom half seems to be either redundant or nonsensical (you can't have negative proportions of components). If I have some time, I'll look up "piper plot" and try to work out what it all means. Jim
Sorry no previous message text or addresses, but I just cleaned my mailbox and then found something relevant. Regarding the Piper diagram. I just noticed the 'hydrogeo' package on CRAN, courtesy of one Myles English. That should be what you need or close to it. Best regards, Michael Grant [[alternative HTML version deleted]]