r - add line to nls fit and plot -


i having problems adding line 1 scatter plot. data fit exponential model. used nls coefficients:

fit <- nls(volumen ~ bo+ exp(b1*dap), data= df, start = list(bo=0, b1=55)) 

later used plot , lines commands visualize fit data:

plot(dap,volumen) lines(dap,predict(fit,data.frame(x=dap))) 

my big problem visualize linear line not fit exponential points.

could model statement have errors?

please, comments appreciate.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -