R/qqchi.ltraj.r

"qqchi.ltraj" <- function (y, xlab = "Theoretical Quantiles",
                           ylab = "Sample Quantiles (Distances)",
                           ...)
{
    if (!inherits(y,"ltraj"))
        stop("y should be of class ltraj")
    if (!attr(y, "typeII"))
        stop("y should be of type II (time recorded)")
    opar <- par(mfrow=n2mfrow(length(y)))
    on.exit(par(opar))
    toto <- lapply(y, function(i) {
        ys <- i$dist/sqrt(i$dt)
        tutu <- qqchi(ys,xlab=xlab,ylab=ylab,main=attr(i,"burst"),...)
        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.