R/boxplot.specaccum.R

Defines functions `boxplot.specaccum`

`boxplot.specaccum` <-
    function(x, add=FALSE, ...)
{
    if (x$method != "random")
        stop("boxplot available only for method=\"random\"")
    if (!add) {
        plot(x$sites, x$richness, type="n", xlab="Sites", ylab="Species",
             ylim=c(1, max(x$richness, na.rm = TRUE)),  ...)
    }
    tmp <- boxplot(data.frame(t(x$perm)), add=TRUE, at=x$sites, axes=FALSE, ...)
    invisible(tmp)
}
vegandevs/vegan documentation built on April 11, 2024, 12:15 a.m.