give.thresh: Function that returns the maximum distance of the minimum...

Description Usage Arguments Value Author(s) Examples

Description

Can be useful to select a truncation value for the original PCNM approach. It returns the minimum value that keep all samples connected.

Usage

1
give.thresh(distxy)

Arguments

distxy

A distance matrix (i.e. obtained by dist() function)

Value

The maximum value of the minimum spanning tree

Author(s)

Stephane Dray

Examples

1
2
3
4
5
6
7
8
xy <- matrix(rnorm(60),30,2)
dxy <- dist(xy)
th <- give.thresh(dxy)
nb1 <- mst.nb(dxy)
wh1 <- which(as.matrix(dxy)==th,arr.ind=TRUE)
plot(nb1,xy,pch=20,cex=2,lty=3)
lines(xy[wh1[1,],1],xy[wh1[1,],2],lwd=2)
title(main="Maximum distance of the minimum spanning tree in bold")

spacemakeR documentation built on May 2, 2019, 4:51 p.m.