Re: [R] triangle contour plots

2007-06-20 Thread Cleber Borges
Hi, I used similar things to Chemical Mixture Modelling. ( Scheffe model) I make the function below. Cleber + trimage <- function(f){ x = y = seq( 1, 0, l=181 ) t1 = length(x) im = aux = numeric(0) for( i in seq( 1, t1, by = 2 ) ){ #idx

Re: [R] triangle contour plots

2007-06-19 Thread Jim Lemon
Robin Hankin wrote: > Suppose I have three numbers p1, p2, p3 with > 0 <= p1,p2,p3 <= 1 and p1+p2+p3=1, > and a function f=f(p1,p2,p3) = f(p1,p2,1-p1-p2). > > How to draw a contour plot of f() on the p1+p2+p3=1 plane, > that is, an equilateral triangle? > > Functions triplot(), triangle.plo

Re: [R] triangle contour plots

2007-06-18 Thread Greg Snow
CTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hankin > Sent: Monday, June 18, 2007 6:12 AM > To: R program > Subject: [R] triangle contour plots > > Suppose I have three numbers p1, p2, p3 wit

Re: [R] triangle contour plots

2007-06-18 Thread Duncan Murdoch
On 6/18/2007 8:12 AM, Robin Hankin wrote: > Suppose I have three numbers p1, p2, p3 with > 0 <= p1,p2,p3 <= 1 and p1+p2+p3=1, > and a function f=f(p1,p2,p3) = f(p1,p2,1-p1-p2). > > How to draw a contour plot of f() on the p1+p2+p3=1 plane, > that is, an equilateral triangle? The usual conto

[R] triangle contour plots

2007-06-18 Thread Robin Hankin
Suppose I have three numbers p1, p2, p3 with 0 <= p1,p2,p3 <= 1 and p1+p2+p3=1, and a function f=f(p1,p2,p3) = f(p1,p2,1-p1-p2). How to draw a contour plot of f() on the p1+p2+p3=1 plane, that is, an equilateral triangle? Functions triplot(), triangle.plot(), and ternaryplot() give only s