R/ordicluster2.R

Defines functions `ordicluster2`

`ordicluster2` <-
function(ordiplot,cluster,mingroups=1,maxgroups=nrow(ordiplot$sites),...){
    mingroups <- max(1,mingroups)
    maxgroups <- min(maxgroups,nrow(ordiplot$sites))
    n <- nrow(ordiplot$sites)
    for (i in mingroups:maxgroups) {
        groups <- cutree(cluster,k=i)
        ordihull(ordiplot,groups,...)
    }
}

Try the BiodiversityR package in your browser

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

BiodiversityR documentation built on Jan. 6, 2023, 5:18 p.m.