plotlist: plot a list of objects.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/plotlist.R

Description

Plot each item of objects stored in a list. This is not extention of list object, just to help plot many objects stored in a list. Typically nlr fited objects such as nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn has plot method and the result of many model fitts can be stored in a list, then plotlist function plot all of them.

Usage

1
  plotlist(listobj,...)

Arguments

listobj

An nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn obejct after a nonlinear model fitted before.

...

An ..., argument passe to plot function.

Details

plot items in a least one by one.

Value

Plot of objects.

Note

Used mostly for internal purposes.

Author(s)

Hossein Riazoshams, Jan 2010. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

See Also

nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
nn<-length(nlrobj1)
d<-list(xr=nlr::Weights$Date, yr=nlr::Weights$Weight)
wmodel.nlrob <-list( NULL)
j<-1
for(i in 1:3){

  start<-as.list(nlrobj1[[i]]$par)
  #wmodel.nlrob[i] <-list( nlmest(nlrobj1[[i]],data=d,start=start,robfunc=nl.robfuncs[[1]]))
  a1 <- nlr(nlrobj1[[i]],data=d,robustform = "hampel")
  if (! is.Fault(a1)){
    wmodel.nlrob[j]<-a1
    j<-j+1
  }
}
plotlist(wmodel.nlrob)

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to plotlist in nlr...