Re: [R] centroid of diamond

2014-03-14 Thread al Vel
mat <- -solve(M) %*% intercepts data.frame(x=t_mat[1,1], y=t_mat[2,1]) } The problem is: the points are going out of the rhombus. On Fri, Mar 14, 2014 at 9:22 AM, Jim Lemon wrote: > On 03/14/2014 07:05 PM, al Vel wrote: > >> Hi, >> >> I was very clear in the mail that i

Re: [R] centroid of diamond

2014-03-14 Thread al Vel
6:08 AM, Jim Lemon wrote: > On 03/14/2014 06:03 AM, al Vel wrote: > >> Hello R users, >> I am trying to make a baricentric diagram like the ternary plot, but with >> 4 >> edges. I want to know how to calculate the centroid of the diamond. The 4 >> edges are A, B, C

[R] centroid of diamond

2014-03-13 Thread al Vel
Hello R users, I am trying to make a baricentric diagram like the ternary plot, but with 4 edges. I want to know how to calculate the centroid of the diamond. The 4 edges are A, B, C, D. If value of A=B=C=D, then the point should be at the centre of the diamond. If A>B and B=C=D=0, Then the point s