R/hist.ltraj.r

"hist.ltraj" <-
function(x, which="dx/sqrt(dt)", ...)
{
  if (!inherits(x,"ltraj"))
    stop("x should be of class ltraj")
  opar <- par(mfrow=n2mfrow(length(x)))
  on.exit(par(opar))
  toto <- lapply(x, function(i) {
    ex<- parse(text=which)
    coin <- eval(ex, envir=i)
    tutu <- hist(coin, main=attr(i,"burst"), xlab=ex,...)
    return(tutu)
  })
  invisible(toto)
}

Try the adehabitat package in your browser

Any scripts or data that you put into this service are public.

adehabitat documentation built on Jan. 28, 2018, 5:02 p.m.