search for: dleaf

Displaying 7 results from an estimated 7 matches for "dleaf".

Did you mean: leaf
2004 Dec 19
1
how to make the matrix as factors
Hi All, Thanks for you help, I have loaded the library MASS to call the mca. But when I want to do the mca, there is another problem, for example -------- -------- > leaf <- read.table("C:/Documents and Settings/wxh-c/×ÀÃæ/1.txt", + col.names=c("size","texture"),header=TRUE) > leaf size texture 1 3 3 2 2 2 3 3 2 4 3
2005 Oct 23
1
Coloring leaves, twigs and labels in plot.dendrogram()
...* my.dend.plot <- function (x, type = c("rectangle", "triangle"), center = FALSE, edge.root = is.leaf(x) || !is.null(attr(x, "edgetext")), nodePar = NULL, edgePar = list(), leaflab = c("perpendicular", "textlike", "none"), dLeaf = NULL, xlab = "", ylab = "", xaxt = "n", yaxt = "s", horiz = FALSE, frame.plot = FALSE, twig.col = NULL, lab.col = NULL, leaf.col = NULL, ...){ ############################## 80 Characters Wide ############################## plotNode <- functi...
2011 Dec 12
1
how to colour labels (each label with a colour) in a dendrogram?
...plot(dend1) labels (USArrests) [[1]] # to know how many cities (labels) = 50 nP <- list(col=3:2, cex=c(2.0, 0.75), pch= 21:22, bg= c("light blue", "pink"), lab.cex = 0.75, lab.col = 1:50) # or use a palette: palette(rainbow(50)) plot(dend1, edgePar=nP, dLeaf=1, edge.root = TRUE) # this option is not correct. I want each of my labels (text) have a different colour but that is not what is happening. How can I do that? I'd appreciate your help. thanks a lot again. Barbara On 9 December 2011 13:44, barbara costa <rbarbarahc@gmail.com> wrote:...
2012 Apr 30
2
Generate Dendrogram
...x = 0.8)). But I got warning and the plot does not look like what I wanted. Warning messages: In plot.hclust(hc.obj, xlab = "", ylab = "", sub = "", nodePar = list(pch = c(1, : "nodePar" is not a graphical parameter It also can not recognize edgePar= dLeaf= edge.root Does someone know what's wrong? Br, Luffy
2011 Dec 09
1
how to add an edgetext to a dendrogram?
...plot(dend1) labels (USArrests) [[1]] # to know how many cities (labels) = 50 nP <- list(col=3:2, cex=c(2.0, 0.75), pch= 21:22, bg= c("light blue", "pink"), lab.cex = 0.75, lab.col = 1:50) # or use a palette: palette(rainbow(50)) plot(dend1, edgePar=nP, dLeaf=1, edge.root = TRUE) # this option is not correct. I want each of my labels (text) have a different colour but that is not what is happening. How can I do that? I'd appreciate your help. thanks a lot Barbara [[alternative HTML version deleted]]
2009 Jun 19
1
Drawing dendrogram
...x1, y1, col="red", lty=2) x0<- 1.8 y0<- 0.5 x1<- 1.8 y1<- 4.4 segments(x0, y0, x1, y1, col="red", lty=2) ################################################################################ plot(mydend, xlim=c(4, 0.5), horiz = TRUE, main="My Dendrogram 2", dLeaf=0.35)#, yaxt="n") x0<- 0.3 y0<- 0.5 x1<- 1.8 y1<- 0.5 segments(x0, y0, x1, y1, col="red", lty=2) x0<- 0.3 y0<- 4.4 x1<- 1.8 y1<- 4.4 segments(x0, y0, x1, y1, col="red", lty=2) x0<- 0.3 y0<- 0.5 x1<- 0.3 y1<- 4.4 segments(x0, y0, x...
2007 Jun 13
2
Formatted Data File Question for Clustering -Quickie Project
...2) # only the first two sub-levels op <- par(mfrow= c(2,2), mar = c(5,2,1,4)) plot(dend1) ## "triangle" type and show inner nodes: plot(dend1, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), type = "t", center=TRUE) plot(dend1, edgePar=list(col = 1:2, lty = 2:3), dLeaf=1, edge.root = TRUE) plot(dend1, nodePar=list(pch = 2:1,cex=.4*2:1, col = 2:3), horiz=TRUE) dend2 <- cut(dend1, h=70) plot(dend2$upper) ## leafs are wrong horizontally: plot(dend2$upper, nodePar=list(pch = c(1,7), col = 2:1)) ## dend2$lower is *NOT* a dendrogram, but a list of .. : plot(dend2$...