get.dendrogram.heatmap {MoBPS}R Documentation

Dendrogram Heatmap

Description

Function calculate a dendogram

Usage

get.dendrogram.heatmap(
  population,
  path = NULL,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  method = NULL,
  individual.names = NULL,
  traits = NULL,
  type = "pheno"
)

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))

traits

Traits to include in the dendrogram (default: all traits)

type

Which traits values to consider (default: "pheno", alt: "bv", "bve")

Value

Dendrogram plot of genotypes vs phenotypes

Examples

population <- creating.diploid(nsnp=1000, nindi=40, n.additive = c(100,100,100),
               shuffle.cor = matrix(c(1,0.8,0.2,0.8,1,0.2,0.2,0.2,1), ncol=3), shuffle.traits = 1:3)
population <- breeding.diploid(population, phenotyping = "all", heritability = 0.5)
get.dendrogram.heatmap(population, gen=1, type="pheno")

[Package MoBPS version 1.6.64 Index]