Learn R Programming

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

dendextend (version 1.1.2)

Extending R's Dendrogram Functionality

Description

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 tree's 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

1.1.2

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tal Galili

Last Published

October 31st, 2015

Functions in dendextend (1.1.2)

raise.dendrogram

Raise the height of a dendrogram tree
is.dendlist

Checks if an object is of class dendlist
colored_bars

Add colored bars to a dendrogram
click_rotate

Interactively rotate a tree object
cutree_1h.dendrogram

cutree for dendrogram (by 1 height only!)
Bk_plot

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

Ladderize a Tree
labels<-

"label" assignment operator
noded_with_condition

Find which nodes satisfies a condition
khan

Microarray gene expression dataset from Khan et al., 2001. Subset of 306 genes.
Bk_permutations

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

Color dend's labels according to sub-clusters
get_branches_heights

Get height attributes from a dendrogram
plot_horiz.dendrogram

Plotting a left-tip-adjusted horizontal dendrogram
prune

Prunes a tree (using leaves' labels)
assign_values_to_nodes_nodePar

Assign values to nodePar of dendrogram's nodes
untangle_DendSer

Tries to run DendSer on a dendrogram
highlight_distinct_edges

Highlight distint edges in a tree (compared to another one)
get_childrens_heights

Get height attributes from a dendrogram's children
dist.dendlist

Topological Distances Between Two dendrograms
common_subtrees_clusters

Find clusters of common subtrees
prune_leaf

Trimms one leaf from a dendrogram
intersect_trees

Intersect trees
unbranch

unbranch trees
branches_attr_by_labels

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

Color tree's branches according to sub-clusters
DendSer.dendrogram

Tries to run DendSer on a dendrogram
dend_diff

Plots two trees side by side, highlighting edges unique to each tree in red.
unclass_dend

unclass an entire dendrogram tree
dendextend-package

Functions for extending dendrogram objects
order.hclust

Ordering of the Leaves in a hclust Dendrogram
cut_lower_fun

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

Fix rank of leaves order values in a dendrogram
all_couple_rotations_at_k

Rotate tree branches for k
all_unique

Check if all the elements in a vector are unique
remove_nodes_nodePar

Remove all nodePar values from a dendrogram's nodes
rotate

Rotate a tree object
nnodes

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

Hang dendrogram leaves
as.dendlist

Try to coerce something into a dendlist
fix_members_attr.dendrogram

Fix members attr in a dendrogram
remove_branches_edgePar

Remove all edgePar values from a dendrogram's branches
is.natural.number

Check if numbers are natural
entanglement

Measures entanglement between two trees
assign_values_to_branches_edgePar

Assign values to edgePar of dendrogram's branches
assign_dendextend_options

Populates dendextend functions into dendextend_options
labels_cex

Retrieve/assign cex to the labels of a dendrogram
sort_dist_mat

Sorts a distance matrix by rows and columns
get_nodes_xy

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

Assign values to nodePar of dendrogram's leaves
sort_levels_values

Sort the values level in a vector
untangle_step_rotate_1side

Stepwise untangle one tree compared to another
get_nodes_attr

Get attributes of dendrogram's nodes
rect.dendrogram

Draw Rectangles Around a Dendrogram's Clusters
prune_common_subtrees.dendlist

Prune trees to their common subtrees
untangle_random_search

Untangle - random search
rotate_DendSer

Rotates dend based on DendSer
set

Set (/update) features to a dendrogram
rllply

recursivly apply a function on a list
get_leaves_branches_col

Get the colors of the branches of a dendrogram's leaves
FM_index_profdpm

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

Global Comparison of two (or more) dendrograms
untangle

untangle dendrograms
lowest_common_branch

Find lowest common branch were the two items are shared
match_order_by_labels

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

Baker's Gamma correlation coefficient
Bk

Bk - Calculating Fowlkes-Mallows Index for two dendrogram
flatten.dendrogram

Flatten the branches of a dendrogram's root
as.phylo.dendrogram

Convert a dendrogram into phylo
get_leaves_branches_attr

Get an attribute of the branches of a dendrogram's leaves
%>%

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

Tanglegram plot
dist_long

Turns a dist object to a "long" table
FM_index

Calculating Fowlkes-Mallows Index
dendlist

Creating a dendlist object from several dendrograms
assign_values_to_leaves_edgePar

Assign values to edgePar of dendrogram's leaves
is.dendrogram

Is the object of class dendrogram
count_terminal_nodes

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

Collapse branches under a tolerance level
sample.dendrogram

Sample a tree
ggdend

Creates dendrogram plot using ggplot.
d3dendrogram

Plot dendrogram to webpage and view.
match_order_dendrogram_by_old_order

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

Rank a vector based on clusters
get_leaves_nodePar

Get nodePar of dendrogram's leaves
pvclust_show_signif

Shows the significant branches in a dendrogram, based on a pvclust object
is.phylo

Is the object of class phylo
is_null_list

Checks if the value is and empty list()
labels_colors

Retrieve/assign colors to the labels of a dendrogram
sort_2_clusters_vectors

Sorts two clusters vector by their names
which_node

Which node id is common to a group of labels
get_leaves_edgePar

Get edgePar of dendrogram's leaves
bakers_gamma_for_2_k_matrix

Bakers Gamma for two k matrices
d3dendro_options

Get or set current defaults for d3dendrogram
as_hclust_fixed

Convert dendrogram Objects to Class hclust
remove_leaves_nodePar

Remove all nodePar values from a dendrogram's leaves
cor_cophenetic

Cophenetic correlation between two trees
fac2num

Turns a factor into a number
flip_leaves

Flip leaves
is.hclust

Is the object of class hclust
nleaves

Counts the number of leaves in a tree
partition_leaves

A list with labels for each subtree (edge)
theme_dendro

Creates completely blank theme in ggplot
FM_index_permutation

Calculating Fowlkes-Mallows Index under H0
cor.dendlist

Correlation matrix between a list of trees.
pvclust_show_signif_gradient

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

Stepwise untangle two trees one at a time
cutree_1k.dendrogram

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

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

Return the leaf Colors of a dendrogram
shuffle

Random rotation of trees
dendextend_labels.dendrogram

Labels of the Leaves in a Dendrogram
circlize_dendrogram

Plot a circlized dendrograms
get_leaves_attr

Get/set attributes of dendrogram's leaves
get_root_branches_attr

get attributes from the dendrogram's root(!) branches
na_locf

Last Observation Carried Forward
cor_FM_index

Correlation of FM_index for some k
duplicate_leaf

Duplicate a leaf X times
identify.dendrogram

Identify Clusters in a Dendrogram (not hclust)
order.dendrogram<-

order.dendrogram<- assignment operator
which_leaf

Which node is a leaf?
cor_common_nodes

Proportion of commong nodes between two trees
branches_attr_by_clusters

Change col/lwd/lty of branches based on clusters
heights_per_k.dendrogram

Which height will result in which k for a dendrogram
rank_branches

Rank branches' heights
dendextend_options

Access to dendextend_options
distinct_edges

Finds the edges present in the first tree but not in the second
FM_index_R

Calculating Fowlkes-Mallows index in R