Learn R Programming

dartR (version 1.1.11)

gl.tree.nj: Output an nj tree to summarize genetic similarity among populations

Description

This function is a wrapper for the nj{ape} function applied to Euclidian distances calculated from the genlight object.

Usage

gl.tree.nj(gl, type = "phylogram", outgroup = NULL, labelsize = 0.7)

Arguments

gl

-- Name of the genlight object containing the SNP data or a genind object containing presence absence data [required]

type

-- Type of dendrogram phylogram|cladogram|fan|unrooted [Default Phylogram]

outgroup

-- Vector containing the population names that are the outgroups [Default NULL]

labelsize

-- Size of the labels as a proportion of the graphics default [Default 0.7]

Value

A tree file of type phylo

Examples

Run this code
# NOT RUN {
gl.tree.nj(testset.gl,type="fan")
# }

Run the code above in your browser using DataLab