Movatterモバイル変換


[0]ホーム

URL:


treeheatr: anintroduction

vignettedocumentationgithub-action-status

Yourdecision tree may be cool, but what if I tell you you can make ithot?

Changes in treeheatr 0.2.0

The first argument ofheat_tree(),data isnow replaced withx, which can be a dataframe (or tibble),a party (or constparty) object specifying the precomputed tree, orpartynode object specifying the customized tree.custom_tree argument is no longer needed.

Install

Please make sure your version of R >= 3.5.0 beforeinstallation.

You can install the released version oftreeheatrfrom CRAN with:

install.packages('treeheatr')

Or the development version from GitHub with remotes:

# install.packages('remotes') # uncomment to install devtoolsremotes::install_github('trang1618/treeheatr')

Examples

Penguin dataset

Classification of different types of penguin species.

library(treeheatr)heat_tree(penguins,target_lab ='species')

Wine recognition dataset

Classification of different cultivars of wine.

heat_tree(wine,target_lab ='Type',target_lab_disp ='Cultivar')

Citing treeheatr

If you use treeheatr in a scientific publication, please considerciting the following paper:

Le TT, Moore JH.treeheatr: an Rpackage for interpretable decision tree visualizations.Bioinformatics. 2020 Jan 1.

BibTeX entry:

@article{le2020treeheatr,title={treeheatr: an R package for interpretable decision tree visualizations},author={Le, Trang T and Moore, Jason H},journal={Bioinformatics},year={2020},doi="10.1093/bioinformatics/btaa662"}

How to Use

treeheatr incorporates a heatmap at the terminalnode of your decision tree. The basic building blocks to atreeheatr plot are (yes, you guessed it!) a decisiontree and a heatmap.

Make sure to check out thevignettefor detailed information on the usage oftreeheatr.

Pleaseopen anissue for questions related totreeheatr usage, bugreports or general inquiries.

Thank you very much for your support!


[8]ページ先頭

©2009-2025 Movatter.jp