CRAN
dendroextras 0.2.3
Extra Functions to Cut, Label and Colour Dendrogram Clusters
Released Jan 25, 2018 by Gregory Jefferis
Provides extra functions to manipulate dendrograms that build on the base functions provided by the 'stats' package. The main functionality it is designed to add is the ability to colour all the edges in an object of class 'dendrogram' according to cluster membership i.e. each subtree is coloured, not just the terminal leaves. In addition it provides some utility functions to cut 'dendrogram' and 'hclust' objects and to set/get labels.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>dendroextras</artifactId> <version>0.2.3-b6</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:dendroextras')
Test Results
This package was last tested against Renjin 0.9.2644 on Jun 1, 2018.
- Test_colouring_of_dendrograms.Can_colour_a_dendrogram_and_add_group_labels
- Test_colouring_of_dendrograms.Can_cut/colour_an_hclust_object_returning_a_dendrogram
- Test_colouring_of_dendrograms.Can_find_leaf_colours_E1
- Test_colouring_of_dendrograms.Can_find_leaf_colours_E2
- Test_colouring_of_dendrograms.Can_find_leaf_colours_E3
- Test_colouring_of_dendrograms.Can_find_leaf_colours_E4
- Test_colouring_of_dendrograms.Colour_a_dendrogram_by_cluster_identity_E1
- Test_colouring_of_dendrograms.Colour_a_dendrogram_by_cluster_identity_E2
- Test_colouring_of_dendrograms.Colour_a_dendrogram_by_cluster_identity_E3
- Test_colouring_of_dendrograms.Colour_a_dendrogram_by_cluster_identity_E4
- Test_colouring_of_dendrograms.Colouring_a_dendrogram_by_cutting_on_height_or_number_of_groups
- Test_cutting_trees.Compare_slice_hclust_and_slice_dendrogram
- Test_cutting_trees.Ordered_cut_of_an_hclust_object
- Test_handling_of_dendrogram_labels.Find_labels_of_hclust_object
- colour_clusters-examples
- labels-assign-examples
- labels.hclust-examples
- leaf_colours-examples
- set_leaf_colours-examples
- slice-examples
- test-all