Re: [R] Convex hull line coordinates..

From: Barry Rowlingson <>
Date: Tue 22 Mar 2005 - 04:56:56 EST

Romain Francois wrote:
> Hello,
> I'm not sure i got your question right, but i think the whole point is
> to find the equation of a line which passes by two points
> See ?lm

  Or see a basic geometry book, where you will find a formula such as:

  (x-x1)/(y-y1) = (x2-x1)/(y2-y1)

for the equation of a line passing through (x1,y1) and (x2,y2).

Just watch out for y2==y1 and the inevitable division by zero. Might be better to ask what you want the line for in order to find a representation that better suits your need - a single point and slope, perhaps.

Baz mailing list PLEASE do read the posting guide! Received on Tue Mar 22 05:14:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:52 EST