NJ {ggtree} | R Documentation

## NJ

### Description

neighbor-joining method

### Usage

    NJ(X)

### Arguments

`X` | distance matrix

### Value

phylo object

### Author(s)

ygc

### Examples

    ## Not run:
    X <- matrix(c(0,5,4,7,6,8,
    	5,0,7,10,9,11,
    	4,7,0,7,6,8,
    	7,10,7,0,5,9,
    	6,9,6,5,0,8,
    	8,11,8,9,8,0), ncol=6)
    rownames(X) <- colnames(X) <- LETTERS[1:6]
    tree <- NJ(X)
    print(tree)

    ## End(Not run)

[Package ggtree version 1.10.5 Index]