Please make sure your version of R >= 3.5.0 before installation.
# install.packages('devtools') # uncomment to install devtools
devtools::install_github('trang1618/treeheatr')
Classification of different types of iris plants.
Classification of different cultivars of wine.
treeheatr incorporates a heatmap at the terminal node of your decision tree. The basic building blocks to a treeheatr plot are (yes, you guessed it!) a decision tree and a heatmap.
The decision tree is computed with partykit::ctree()
and plotted with the well-documented and flexible ggparty package. The tree parameters can be passed to ggparty functions via the heat_tree()
and draw_tree()
functions of treeheatr. More details on different ggparty geoms can be found here.
The heatmap is shown with ggplot2::geom_tile()
. The user may choose to cluster the samples within each leaf node or the features across all samples.
Make sure to check out the vignette for detailed information on the usage of treeheatr.
Please open an issue for questions related to treeheatr usage, bug reports or general inquiries.
Thank you very much for your support!