Description Usage Arguments Value Examples
View source: R/get.dendrogram.heatmap.R
Function calculate a dendogram
1 2 3 4 5 6 7 8 9 10 11 |
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") |
Dendrogram plot of genotypes vs phenotypes
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.