]> git.donarmstrong.com Git - ape.git/blobdiff - man/bionj.Rd
a few changes...
[ape.git] / man / bionj.Rd
index 261542a382e5295615b794992c85609f04a0991d..18b06b488754cbfd3131798ee458d46771203b2c 100644 (file)
@@ -35,9 +35,10 @@ x <- c(7, 8, 11, 13, 16, 13, 17, 5, 8, 10, 13,
        10, 14, 5, 7, 10, 7, 11, 8, 11, 8, 12,
        5, 6, 10, 9, 13, 8)
 M <- matrix(0, 8, 8)
-M[row(M) > col(M)] <- x
-M[row(M) < col(M)] <- x
-rownames(M) <- colnames(M) <- 1:8
+M[lower.tri(M)] <- x
+M <- t(M)
+M[lower.tri(M)] <- x
+dimnames(M) <- list(1:8, 1:8)
 tr <- bionj(M)
 plot(tr, "u")
 ### a less theoretical example