hclustDist: Wrapper for hierarchical clustering of spatial coordinates.

Description Usage Arguments Details Value Author(s) Examples

Description

Convenient wrapper for hierarchical clustering spatial coordinates.

Usage

1
hclustDist(xy, method = "ward.D", dS = NULL)

Arguments

xy

A numeric array of spatial coordinates.

method

A character string specifying the hierarchical clustering method to be passed to stats::hclust.

dS

An optional numeric value specifying the denominator to be used in down-scaling each value of input xy.

Details

hclustDist returns results from hierarchical clustering using the stats::hclust() function.

Value

Returns an object of class *hclust*, see stats::hclust.

Author(s)

Bjorn J. Brooks

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
xy <- data.frame(x=c(0, 0, 2, 3),               # Some example coordinates
                 y=c(0, 1, 4, 5))
rownames(xy) <- LETTERS[1:4]                    # Set names of coord points
fit <- hclustDist(xy)

# Plot
par(mfrow=c(1,2))
plot(xy, pch='')
text(xy, labels=rownames(xy))

plot(fit)

bjornbrooks/AGcurve documentation built on June 19, 2019, 12:41 a.m.