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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -