mapToDend: Transforming a map into a dendrogram

Description Usage Arguments Value Examples

View source: R/map.R

Description

Create dendrogram object. The map specific distance are ignored and only the grouping and ordering is maintained. Allows for comparison of whole map with package 'dendextend'

Usage

1
mapToDend(map, mergeoff = 0L)

Arguments

map

One map. Required.

mergeoff

Numeric, offset between chromosomes, to avoid equal heights in dendrogram. Equal heights lead to problems in cor_bakers_gamma().

Value

Dendogram object.

Examples

1
2
3
4
5
6
7
8
data(simTetra)
simTetrageno <- basesToGenotypes(simTetra, 4)
rfMat <- calcRec(simTetrageno, 4)
split <- splitChr(rfMat, nchr = 7)
split <- sortLeafs(rfMat, split)
map <- pullMap(rfMat, split = split)   
dend <- mapToDend(map)  
plot(dend)

grafab/pergola documentation built on May 17, 2019, 8:18 a.m.