Package: treeheatr 0.2.1

treeheatr: Heatmap-Integrated Decision Tree Visualizations

Creates interpretable decision tree visualizations with the data represented as a heatmap at the tree's leaf nodes. 'treeheatr' utilizes the customizable 'ggparty' package for drawing decision trees.

Authors:Trang Le [aut, cre], Jason Moore [aut], University of Pennsylvania [cph]

treeheatr_0.2.1.tar.gz
treeheatr_0.2.1.zip(r-4.5)treeheatr_0.2.1.zip(r-4.4)treeheatr_0.2.1.zip(r-4.3)
treeheatr_0.2.1.tgz(r-4.4-any)treeheatr_0.2.1.tgz(r-4.3-any)
treeheatr_0.2.1.tar.gz(r-4.5-noble)treeheatr_0.2.1.tar.gz(r-4.4-noble)
treeheatr_0.2.1.tgz(r-4.4-emscripten)treeheatr_0.2.1.tgz(r-4.3-emscripten)
treeheatr.pdf |treeheatr.html
treeheatr/json (API)
NEWS

# Install 'treeheatr' in R:
install.packages('treeheatr', repos = c('https://trangdata.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/trangdata/treeheatr/issues

Datasets:
  • diabetes - Diabetes patient records.
  • galaxy - Galaxy dataset for regression.
  • penguins - Data of three different species of penguins.
  • test_covid - External test dataset. Medical information of Wuhan patients collected between 2020-01-10 and 2020-02-18.
  • train_covid - Training dataset. Medical information of Wuhan patients collected between 2020-01-10 and 2020-02-18. Containing NAs.
  • wine - Results of a chemical analysis of wines grown in a specific area of Italy.
  • wine_quality_red - Red variant of the Portuguese "Vinho Verde" wine.

On CRAN:

datavizdecision-treesggplotheatmapvisualization

7 exports 55 stars 3.29 score 61 dependencies 1 mentions 19 scripts 223 downloads

Last updated 1 years agofrom:85be4a61e3. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-winOKAug 23 2024
R-4.5-linuxOKAug 23 2024
R-4.4-winOKAug 23 2024
R-4.4-macOKAug 23 2024
R-4.3-winOKAug 23 2024
R-4.3-macOKAug 23 2024

Exports:compute_treedraw_heatdraw_treeeval_treeheat_treescale_normtreeheatr

Dependencies:backportscacheckmatecliclustercodetoolscolorspacecpp11dplyrfansifarverforeachFormulagclusgenericsggnewscaleggpartyggplot2gluegtablehardhatinumisobanditeratorslabelinglatticelibcoinlifecyclemagrittrMASSMatrixmgcvmunsellmvtnormnlmepartykitpermutepillarpkgconfigpurrrqapR6RColorBrewerregistryrlangrpartscalesseriationstringistringrsurvivaltibbletidyrtidyselectTSPutf8vctrsveganviridisLitewithryardstick

Explore treeheatr

Rendered fromexplore.Rmdusingknitr::rmarkdownon Aug 23 2024.

Last update: 2021-03-18
Started: 2020-04-20

Readme and manuals

Help Manual

Help pageTopics
Align decision tree and heatmap:align_plots
Performs clustering or features.clust_feat_func
Performs clustering of samples.clust_samp_func
Compute decision tree from data setcompute_tree
Diabetes patient records.diabetes
Draws the heatmap.draw_heat
Draws the conditional decision tree.draw_tree
Print decision tree performance according to different metrics.eval_tree
Galaxy dataset for regression.galaxy
Get color functions from character vectorsget_cols
Select the important features to be displayed.get_disp_feats
---------------------------- Get the fitted tree depending on the input `x`.get_fit get_fit.data.frame get_fit.default get_fit.party get_fit.partynode
Draws and aligns decision tree and heatmap.heat_tree treeheatr
Data of three different species of penguins.penguins
Creates smart node layout.position_nodes
Apply the predicted tree on either new test data or training data.prediction_df
---------------------------- Prepare datasetprep_data
Prepares the feature dataframes for tiles.prepare_feats
Performs transformation on continuous variables.scale_norm
Determines terminal node position.term_node_pos
External test dataset. Medical information of Wuhan patients collected between 2020-01-10 and 2020-02-18.test_covid
Training dataset. Medical information of Wuhan patients collected between 2020-01-10 and 2020-02-18. Containing NAs.train_covid
Results of a chemical analysis of wines grown in a specific area of Italy.wine
Red variant of the Portuguese "Vinho Verde" wine.wine_quality_red