Re: [R] add non-linear line

2007-01-17 Thread Duncan Murdoch
On 1/17/2007 12:24 PM, Duncan Murdoch wrote: > On 1/17/2007 10:42 AM, Matt Sakals wrote: >> I am trying to plot a non-linear trend line along with my data. I am >> sure the solution is simple; any help greatly appreciated. >> >> Recent and historic attempts: >> fit = nls((sd~a+b*exp(-c/time)+d*g

Re: [R] add non-linear line

2007-01-17 Thread Duncan Murdoch
On 1/17/2007 10:42 AM, Matt Sakals wrote: > I am trying to plot a non-linear trend line along with my data. I am > sure the solution is simple; any help greatly appreciated. > > Recent and historic attempts: > fit = nls((sd~a+b*exp(-c/time)+d*geology), start=list(a=1, b=1, c=10, > d=-1), model

[R] add non-linear line

2007-01-17 Thread Matt Sakals
I am trying to plot a non-linear trend line along with my data. I am sure the solution is simple; any help greatly appreciated. Recent and historic attempts: fit = nls((sd~a+b*exp(-c/time)+d*geology), start=list(a=1, b=1, c=10, d=-1), model=TRUE) plot(time, sd, col=3, main = "Regression", sub=