Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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(
  x,
  type = "phylogram",
  outgroup = NULL,
  labelsize = 0.7,
  treefile = NULL,
  verbose = NULL
)

Arguments

x

– name of the genlight object containing the SNP 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]

treefile

– Name of the file for the tree topology using Newick format [Default NULL].

verbose

– specify the level of verbosity: 0, silent, fatal errors only; 1, flag function begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]

Value

A tree file of class phylo

Author(s)

Arthur Georges (Post to https://groups.google.com/d/forum/dartr)

Examples

# SNP data
  gl.tree.nj(testset.gl,type="fan")
# Tag P/A data
  gl.tree.nj(testset.gs,type="fan")

dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.