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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -