Learn R Programming

perfectphyloR (version 0.2.1)

plotDend: Plot reconstructed dendrogram

Description

This function plots reconstructed dendrogram in a genomic region.

Usage

plotDend(dend, direction = "downwards")

Arguments

dend

An object of class phylo or of class multiPhylo returned from reconstructPP or reconstructPPregion.

direction

A character string specifying the direction of the dendrogram. Four values are possible: "downwards" (the default), "upwards", "leftwards" and "rightwards".

Examples

Run this code
# NOT RUN {
data(ex_hapMat_data)

ex_dend <- reconstructPP(hapMat = ex_hapMat_data,
                         focalSNV = 3,
                         minWindow = 1,
                         sep = "-")

plotDend(dend = ex_dend, direction = "downwards")

# }

Run the code above in your browser using DataLab