[R] adding multiple fitted curves to xyplot graph

2006-08-16 Thread GOUACHE David
Hello RHelpers, This may already have been answered, but despite days of scouring through the archives I haven't found it. My goal is to add multiple fitted curves to a plot. An example data set (a data frame named df in following code) is: x1 y1 factor1 4

Re: [R] adding multiple fitted curves to xyplot graph

2006-08-16 Thread Gabor Grothendieck
Try this after displaying the xyplot: # this fit.curve returns the whole nls object, not the coefs fit.curve-function(tab) { nls(y1 ~ 100/(1+exp(((-log(81))/a)*(x1-b))),

Re: [R] adding multiple fitted curves to xyplot graph

2006-08-16 Thread Deepayan Sarkar
On 8/16/06, GOUACHE David [EMAIL PROTECTED] wrote: Hello RHelpers, This may already have been answered, but despite days of scouring through the archives I haven't found it. My goal is to add multiple fitted curves to a plot. An example data set (a data frame named df in following code) is: