Skip to content

plotting the result of a nonlinear regression

2 messages · lauramorgana at bluewin.ch, milton ruser

#
Thank you for the suggestion of using predict!
If someone is interested here is the loop I used:

seq(0,max(subset(dati, Fiume=="Laveggio")$Portata), length=100)->seqQ

for(i in 1:35)
{
  jpeg(paste("result",i,".jpg"))
  plot(subset(dati,Fiume=="Laveggio")$PTG.P~subset(dati,Fiume=="Laveggio")$Portata, 
       main=print(formList[[i]]), sub=print(summary(resultList[[i]])$sigma))
  lines(seqQ, predict(resultList[[i]], list(Portata = seqQ)))
  dev.off()
  }

----Messaggio originale----
Da: ssefick at gmail.com
Data: 10.02.2009 18.15
A: <lauramorgana at bluewin.ch>
Copia: <r-help at r-project.org>
Oggetto: Re: [R] plotting the result of a nonlinear regression

?predict

On Tue, Feb 10, 2009 at 11:06 AM, lauramorgana at bluewin.ch
<lauramorgana at bluewin.ch> wrote:
example:
algorithm='port',