R/plotLSCV.r

"plotLSCV" <- function(x)
  {
      ## Verifications
      if (!inherits(x, "khrud"))
          stop("x should be an object of class \"khrud\"")

      ## Graphical settings
      opar<-par(mfrow=n2mfrow(length(x)))

      ## One graph per animal
      for (i in 1:length(x)) {
          plot(x[[i]]$h$CV[,1], x[[i]]$h$CV[,2], pch=16, main=names(x)[i],
               xlab="h parameter", ylab="CV(h)", cex=0.5)
          lines(x[[i]]$h$CV[,1], x[[i]]$h$CV[,2])
      }
      par(opar)
  }

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.