[R] Ternary plot and filled contour

Nicholas Hamilton nicholasehamilton at gmail.com
Thu Dec 19 15:45:04 CET 2013


Dear Francesco, 

I wanted to mention that I have just published on CRAN, a package for R, 
for the plotting of ternary diagrams. 

It is based off ggplot2, which is highly regarded, and, my website can be 
viewed at www.ggtern.com, including many examples, specifically including a 
case study at the following address: 

http://ggtern.com/case-study-zirconia-alumina-silica/ 

Hope you find it of value. 

Best Regards, 

Nicholas Hamilton 
School of Materials Science and Engineering 
Univesity of New South Wales 
Sydney Australia 
-- 
www.ggtern.com 

On Monday, June 4, 2012 10:52:10 PM UTC+10, Francesco Nutini wrote:
>
>
> Dear R-Users, I'd like to have some tips for a ternaryplot ("vcd"). 
> I have this dataframe: 
>     a<- c (0.1, 0.5, 0.5, 0.6, 0.2,        0, 0, 0.004166667, 0.45)     
> b<- c (0.75,0.5,0,0.1,0.2,0.951612903,0.918103448,0.7875,0.45)    c<- c 
> (0.15,0,0.5,0.3,0.6,0.048387097,0.081896552,0.208333333,0.1)     d<- c 
> (500,2324.90,2551.44,1244.50, 551.22,-644.20,-377.17,-100, 2493.04)     
> df<- data.frame (a, b, c, d) 
> and I'm building a ternary plot: 
>     ternaryplot(df[,1:3], df$d) 
> How can I map the continue variable "d", obtaining a result similar to 
> this one? [see the link] 
> > 
> http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2007/jpgCqrZqdDwYG.jpg 
> Many thanks! 
>
>                                                 
>         [[alternative HTML version deleted]] 
>
> ______________________________________________ 
> R-h... at r-project.org <javascript:> 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. 
>


More information about the R-help mailing list