as.dendrogram.vlmc {VLMC}R Documentation

Dendrogram Construction from VLMCs

Description

This is a method for the as.dendrogram generic function

Usage

as.dendrogram.vlmc(object, ...)

Arguments

object a vlmc object.
... further arguments passed to and from methods.

Value

An object of class dendrogram, i.e. a nested list described on that page.

See Also

as.dendrogram, plot.dendrogram.

Examples

data(presidents)
dpr <- factor(cut(presidents, c(0,45,70,100)), exclude=NULL)# NA = 4th level
(vlmc.pres <- vlmc(dpr))
draw(vlmc.pres)
(dv.dpr <- as.dendrogram(vlmc.pres))
if(FALSE) {
 str(dv.dpr) ##==> `INFINITE' LOOP
 plot(dv.dpr)##==> Error
}

[Package Contents]