ported to \R by Vincent Lefort \email{vincent.lefort@lirmm.fr}
}
\seealso{
- \code{\link{nj}}, \code{\link{fastme}},
- \code{\link{write.tree}}, \code{\link{read.tree}},
- \code{\link{dist.dna}}
+ \code{\link{nj}}, \code{\link{fastme}}, \code{\link{mvr}},
+ \code{\link{bionjs}}, \code{\link{SDM}}, \code{\link{dist.dna}}
}
\examples{
### From Saitou and Nei (1987, Table 1):
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