get.dendrogram.heatmap: Dendrogram Heatmap

Description Usage Arguments Value Examples

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

Description

Function calculate a dendogram

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
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")

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