Learn R Programming

MoBPS (version 1.6.64)

get.phylogenetic.tree: Phylogenetic Tree

Description

Function calculate a phylogenetic tree

Usage

get.phylogenetic.tree(
  population,
  path = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  method = NULL,
  individual.names = NULL,
  circular = FALSE
)

Arguments

population

Population list

path

provide a path if the dendrogram would be saved as a png-file

database

Groups of individuals to consider

gen

Quick-insert for database (vector of all generations to consider)

cohorts

Quick-insert for database (vector of names of cohorts to consider)

method

Method used to calculate genetic distances (default: "Nei", alt: "Rogers", "Prevosti", "Modified Rogers"

individual.names

Names of the individuals in the database ((default are MoBPS internal names based on position))

circular

Set to TRUE to generate a fan/circular layout tree

Value

Dendrogram plot for traits

Examples

Run this code
# NOT RUN {
data(ex_pop)
get.phylogenetic.tree(ex_pop, gen=1, circular=TRUE)
# }

Run the code above in your browser using DataLab