[R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread Asha Sharma
Hi, I am looking for a way to find the lower envelope of points on a plot, preferably specifying what percentage of points should be allowed to lie outside the envelope. There must be a straightforward way to do this, but I do not seem to be able to find it. I would greatly appreciate any

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread David Winsemius
On Jun 30, 2010, at 2:05 PM, Asha Sharma wrote: Hi, I am looking for a way to find the lower envelope of points on a plot, preferably specifying what percentage of points should be allowed to lie outside the envelope. There must be a straightforward way to do this, but I do not seem to

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread Stephan Kolassa
Hi, one possibility would be to calculate the convex hull using chull(). I believe that the hull points are returned by chull() in a clockwise order (?), so the points between the rightmost and the leftmost point in the chull() result are the lower half of the convex hull. Remove these

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread Stephan Kolassa
Hi, To be honest, what you mean by a (linear) lower envelope becomes less and less clear to me. Take any cloud of 2-d points. The convex hull consists of a number of these points - or alternatively, of a number of line segments between successive ones of these points. Thus, every one of

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread Asha Sharma
Hi, Thanks to both of you for taking the time to answer my question. I was maybe not very clear in the way I framed my question. By plot, I meant an x-y plot with a cloud of points which should have a linear lower envelope. Is there a way to both plot as well as get the parameters of the

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread David Winsemius
On Jun 30, 2010, at 4:02 PM, Asha Sharma wrote: Hi, Thanks to both of you for taking the time to answer my question. I was maybe not very clear in the way I framed my question. By plot, I meant an x-y plot with a cloud of points which should have a linear lower envelope. Is there a way

Re: [R] Finding Lower Envelope of Points on a Plot?

2010-06-30 Thread Ted Harding
I think this has reached the point where it is absolutely necessary for Asha Sharma to state *exactly* what is meant by a linear lower envelope of a set of points. There are too many possibilities for the problem as stated so far. For instance (possibilities which have not been considered so far):