Learn R Programming

clustree

[]https://app.codecov.io/github/lazappi/clustree?branch=master)

Deciding what resolution to use can be a difficult question when approaching a clustering analysis. One way to approach this problem is to look at how samples move as the number of clusters increases. This package allows you to produce clustering trees, a visualisation for interrogating clusterings as resolution increases.

Installation

You can install the release version of clustree from CRAN with:

install.packages("clustree")

If you want to use the development version that can be installed from GitHub using the remotes package:

# install.packages("remotes")
remotes::install_github("lazappi/clustree@develop")

To also build the vignettes use:

# install.packages("remotes")
remotes::install_github("lazappi/clustree@develop", dependencies = TRUE,
                         build_vignettes = TRUE)

NOTE: Building the vignettes requires the installation of additional packages.

Documentation

The documentation for clustree is available from CRAN at https://cran.r-project.org/package=clustree.

To view the vignette and all the package documentation for the development version visit http://lazappi.github.io/clustree.

Citing clustree

If you use clustree or the clustering trees approach in your work please cite our publication "Zappia L, Oshlack A. Clustering trees: a visualization for evaluating clusterings at multiple resolutions. Gigascience. 2018;7. DOI:gigascience/giy083.

citation("clustree")
 
   Zappia L, Oshlack A. Clustering trees: a visualization for
   evaluating clusterings at multiple resolutions. GigaScience.
   2018;7. DOI:gigascience/giy083
 
A BibTeX entry for LaTeX users is
 
   @Article{,
     author = {Luke Zappia and Alicia Oshlack},
     title = {Clustering trees: a visualization for evaluating clusterings at
              multiple resolutions},
     journal = {GigaScience},
     volume = {7},
     number = {7},
     month = {jul},
     year = {2018},
     url = {http://dx.doi.org/10.1093/gigascience/giy083},
     doi = {10.1093/gigascience/giy083},
   }

Contributors

Thank you to everyone who has contributed code to the clustree package:

Copy Link

Version

Install

install.packages('clustree')

Monthly Downloads

3,848

Version

0.5.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Luke Zappia

Last Published

November 5th, 2023

Functions in clustree (0.5.1)

clustree

Plot a clustering tree
nba_clusts

Clustered NBA positions dataset
store_node_aes

Store node aesthetics
sc_example

Simulated scRNA-seq dataset
build_tree_graph

Build tree graph
clustree-package

Clustree
clustree_overlay

Overlay a clustering tree
add_node_labels

Add node labels
assert_numeric_node_aes

Assert numeric node aesthetics
assert_node_aes

Assert node aesthetics
check_node_aes_list

Check node aes list
calc_sc3_stability

Calculate SC3 stability
calc_sc3_stability_cluster

Calculate single SC3 stability
add_node_points

Add node points
overlay_node_points

Overlay node points
aggr_metadata

Aggregate metadata
assert_colour_node_aes

Assert colour node aesthetics
plot_overlay_side

Plot overlay side
get_tree_edges

Get tree edges
get_tree_nodes

Get tree nodes