Learn R Programming

⚠️There's a newer version (1.19.1) of this package.Take me there.

dendextend (version 0.17.5)

Extending R's dendrogram functionality

Description

The dendextend package offers a set of functions for extending dendrogram objects in R, letting you visualize and compare trees of hierarchical clusterings. You can (1) Adjust a trees graphical parameters - the color, size, type, etc of its branches, nodes and labels. (2) Visually and statistically compare different dendrograms to one another.

Copy Link

Version

Install

install.packages('dendextend')

Monthly Downloads

76,670

Version

0.17.5

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tal Galili

Last Published

September 22nd, 2014

Functions in dendextend (0.17.5)

FM_index

Calculating Fowlkes-Mallows Index
color_branches

Color tree's branches according to sub-clusters
branches_attr_by_labels

Change col/lwd/lty of branches matching labels condition
fac2num

Turns a factor into a number
Bk_plot

Bk plot - ploting the Fowlkes-Mallows Index of two dendrogram for various k's
all_couple_rotations_at_k

Rotate tree branches for k
rank_order.dendrogram

Fix rank of leaves order values in a dendrogram
assign_values_to_leaves_edgePar

Assign values to edgePar of dendrogram's leaves
click_rotate

Interactively rotate a tree object
get_branches_attr

get attributes from the dendrogram's root branches
order.hclust

Ordering of the Leaves in a hclust Dendrogram
FM_index_profdpm

Calculating Fowlkes-Mallows index using the profdpm R package
cutree_1h.dendrogram

cutree for dendrogram (by 1 height only!)
is.dendlist

Checks if an object is of class dendlist
cut_lower_fun

Cut a dendrogram - and run a function on the output
raise.dendrogram

Raise the height of a dendrogram tree
cor_cophenetic

Cophenetic correlation between two trees
dendlist

Creating a dendlist object from several dendrograms
sample.dendrogram

Sample a tree
untangle

untangle dendrograms
is_null_list

Checks if the value is and empty list()
lowest_common_branch

Find lowest common branch were the two items are shared
color_labels

Color tree's labels according to sub-clusters
entanglement

Measures entanglement between two trees
cutree_1k.dendrogram

cutree for dendrogram (by 1 k value only!)
unbranch

unbranch trees
pvclust_show_signif_gradient

Shows the gradient of significance of branches in a dendrogram, based on a pvclust object
match_order_by_labels

Adjust the order of one dendrogram based on another (using labels)
nleaves

Counts the number of leaves in a tree
noded_with_condition

Find which nodes satisfies a condition
hang.dendrogram

Hang dendrogram leaves
shuffle

Random rotation of trees
cor_bakers_gamma

Baker's Gamma correlation coefficient
which_leaf

Which node is a leaf?
is.phylo

Is the object of class phylo
intersect_trees

Intersect trees
labels<-

"label" assignment operator
sort_dist_mat

Sorts a distance matrix by rows and columns
rllply

recursivly apply a function on a list
get_nodes_attr

Get attributes of dendrogram's nodes
count_terminal_nodes

Counts the number of terminal nodes (merging 0 nodes!)
FM_index_permutation

Calculating Fowlkes-Mallows Index under H0
fix_members_attr.dendrogram

Fix members attr in a dendrogram
duplicate_leaf

Duplicate a leaf X times
rotate

Rotate a tree object
flip_leaves

Flip leaves
all_unique

Check if all the elements in a vector are unique
flatten.dendrogram

Flatten the branches of a dendrogram's root
bakers_gamma_for_2_k_matrix

Bakers Gamma for two k matrices
cutree

Cut a Tree (Dendrogram/hclust/phylo) into Groups of Data
match_order_dendrogram_by_old_order

Adjust the order of one dendrogram based on another (using order)
untangle_DendSer

Tries to run DendSer on a dendrogram
plot_horiz.dendrogram

Plotting a left-tip-adjusted horizontal dendrogram
get_nodes_xy

Get the x-y coordiantes of a dendrogram's nodes
branches_attr_by_clusters

Change col/lwd/lty of branches based on clusters
Bk

Bk - Calculating Fowlkes-Mallows Index for two dendrogram
nnodes

Counts the number of nodes (Vertices) in a tree
DendSer.dendrogram

Tries to run DendSer on a dendrogram
prune_leaf

Trimms one leaf from a dendrogram
assign_values_to_nodes_nodePar

Assign values to nodePar of dendrogram's nodes
labels_colors

Retrieve/assign colors to the labels of a dendrogram
Bk_permutations

Bk permutation - Calculating Fowlkes-Mallows Index for two dendrogram
rank_branches

Rank branches' heights
untangle_random_search

Untangle - random search
remove_leaves_nodePar

Remove all nodePar values from a dendrogram's leaves
set

Set (/update) features to a dendrogram
FM_index_R

Calculating Fowlkes-Mallows index in R
get_leaves_attr

Get/set attributes of dendrogram's leaves
identify.dendrogram

Identify Clusters in a Dendrogram (not hclust)
prune

Prunes a tree (using leaves' labels)
sort_levels_values

Sort the values level in a vector
get_branches_heights

Get height attributes from a dendrogram
remove_branches_edgePar

Remove all edgePar values from a dendrogram's branches
unclass_dend

unclass an entire dendrogram tree
assign_values_to_branches_edgePar

Assign values to edgePar of dendrogram's branches
assign_dendextend_options

Populates dendextend functions into dendextend_options
assign_values_to_leaves_nodePar

Assign values to nodePar of dendrogram's leaves
dendextend_options

Access to dendextend_options
d3dendro_options

Get or set current defaults for d3dendrogram
is.natural.number

Check if numbers are natural
rect.dendrogram

Draw Rectangles Around a Dendrogram's Clusters
leaf_Colors

Return the leaf Colors of a dendrogram
na_locf

Last Observation Carried Forward
order.dendrogram<-

order.dendrogram<- assignment operator
pvclust_show_signif

Shows the significant branches in a dendrogram, based on a pvclust object
untangle_step_rotate_2side

Stepwise untangle two trees one at a time
colored_bars

Add colored bars to a dendrogram
as_hclust_fixed

Convert dendrogram Objects to Class hclust
d3dendrogram

Plot dendrogram to webpage and view.
heights_per_k.dendrogram

Which height will result in which k for a dendrogram
is.hclust

Is the object of class hclust
as.dendlist

Try to coerce something into a dendlist
is.dendrogram

Is the object of class dendrogram
rotate_DendSer

Rotates dend based on DendSer
sort_2_clusters_vectors

Sorts two clusters vector by their names
dendextend-package

Functions for extending dendrogram objects
tanglegram

Tanglegram plot
%>%

Pipe an object forward into a function call/expression.
untangle_step_rotate_1side

Stepwise untangle one tree compared to another
get_childrens_heights

Get height attributes from a dendrogram's children