R/nmds.mst.R

Defines functions `nmds.mst`

`nmds.mst` <-
function(nmds,mst,...) {
    a <- nmds$stress
    b <- which.min(a)
    plot(nmds$conf[[b]][,1],nmds$conf[[b]][,2], ...)
    for (i in 1:ncol(mst)) {
      for (j in 1:ncol(mst)) {
        if (mst[i,j]==1) {lines(c(nmds$conf[[b]][i,1],nmds$conf[[b]][j,1]),c(nmds$conf[[b]][i,2],nmds$conf[[b]][j,2]),)}}}

}

Try the fossil package in your browser

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

fossil documentation built on March 23, 2020, 5:06 p.m.