get.dendrogram.trait: Dendrogram

Description Usage Arguments Value Examples

View source: R/get.dendrogram.trait.R

Description

Function calculate a dendogram for the traits

Usage

1
2
3
4
5
6
7
8
9
get.dendrogram.trait(
  population,
  path = NULL,
  database = NULL,
  gen = NULL,
  cohorts = 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)

traits

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

type

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

Value

Dendrogram plot for traits

Examples

1
2
3
4
population <- creating.diploid(nsnp=1000, nindi=100, 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.trait(population, gen=1, type="pheno")

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.