draw_dendrogram: Draw dendrogram

Description Usage Arguments Value Author(s) Examples

View source: R/draw_cluster.R

Description

This function creates and draws a dendrogram using the metric distances from an hlaMetric object.

Usage

1
draw_dendrogram(hlaMetric, as.phylo = FALSE, ...)

Arguments

hlaMetric

an object of class hlaMetric that contain the distance between samples.

as.phylo

a logical indicating if the dendrogram has to be drawn using a phylogenetic tree display. Default: FALSE.

...

arguments passed to the plot method.

Value

NULL

Author(s)

Santiago Medina, Astrid DeschĂȘnes, Pascal Belleau

Examples

1
2
3
4
5
6
7
8
## Load example dataset
data(demoHLADataset)

## Calculate Hamming distance metric
hammingMetric <- calculateHamming(demoHLADataset)

## Create dendrogram
draw_dendrogram(hammingMetric)

NCBI-Hackathons/Integrating-HLA-typing-methods-and-RNA-seq documentation built on Nov. 23, 2019, 1:57 a.m.