tfluctile(x, tree = NULL, dims = c(1, 2), tw = 0.2, border = NULL,
shape = "r", dir = "b", just = "c",
tile.col = hsv(0.1, 0.1, 0.1, alpha = 0.6), bg.col = "lightgrey", vp = NULL,
lab.opt = list(), ...)
x
has an attribute attr(x, "tree")
which should also be a list. The latter way is the standard for objects returned by optile.list
or optile<
x
has more than two dimensions this vector of length 2 indicates which variables to plot."r"
) it is possible to use circles ("c"
), diamonds ("d"
) or octagons ("o"
). The arguments dir
and just
work for rectangular shapes only."v"
and "h"
stand for vertical or horizontal bars. "b"
stands for "both"
and leads to standard fluctuation diagrams with quadratic rectangles. Use "n"
for a same"rb"
is equivalent to c("right", "bottom")
, "t"
is equivalent to "ct"
or c("centre", "top")
and so on. NULL
.lab.cex
and abbrev
work. Also lwd
and line.col
are the line width and the line color for the dendrogram.invisible(TRUE)
library(amap)
hc1 <- hcluster(t(plants[,-1]), method="manhattan", link = "ward")
hc2 <- hcluster(t(plants[,-1]), method="manhattan", link = "complete")
hclist <- list(hc1, hc2)
tfluctile( tt<-optile(hclist, k= c(8,8) ) )
s1 <- subtree(hc1, k = 12)
s2 <- subtree(hc2, k = 10)
tfluctile( table(s1$data, s2$data), tree = list(s1,s2))
Run the code above in your browser using DataLab