Package: parttree 0.1.0

parttree: Visualize Simple 2-D Decision Tree Partitions

Visualize the partitions of simple decision trees, involving one or two predictors, on the scale of the original data. Provides an intuitive alternative to traditional tree diagrams, by visualizing how a decision tree divides the predictor space in a simple 2D plot alongside the original data. The 'parttree' package supports both classification and regression trees from 'rpart' and 'partykit', as well as trees produced by popular frontend systems like 'tidymodels' and 'mlr3'. Visualization methods are provided for both base R graphics and 'ggplot2'.

Authors:Grant McDermott [aut, cre], Achim Zeileis [ctb], Brian Heseung Kim [ctb], Julia Silge [ctb]

parttree_0.1.0.tar.gz
parttree_0.1.0.zip(r-4.5)parttree_0.1.0.zip(r-4.4)parttree_0.1.0.zip(r-4.3)
parttree_0.1.0.tgz(r-4.5-any)parttree_0.1.0.tgz(r-4.4-any)parttree_0.1.0.tgz(r-4.3-any)
parttree_0.1.0.tar.gz(r-4.5-noble)parttree_0.1.0.tar.gz(r-4.4-noble)
parttree_0.1.0.tgz(r-4.4-emscripten)parttree_0.1.0.tgz(r-4.3-emscripten)
parttree.pdf |parttree.html
parttree/json (API)
NEWS

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

Bug tracker:https://github.com/grantmcdermott/parttree/issues

Pkgdown site:https://grantmcdermott.com

On CRAN:

7.73 score 98 stars 91 scripts 396 downloads 2 exports 12 dependencies

Last updated 1 months agofrom:c4f2428a78. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 15 2025
R-4.5-winOKFeb 15 2025
R-4.5-macOKFeb 15 2025
R-4.5-linuxOKFeb 15 2025
R-4.4-winOKFeb 15 2025
R-4.4-macOKFeb 15 2025
R-4.3-winOKFeb 15 2025
R-4.3-macOKFeb 15 2025

Exports:geom_parttreeparttree

Dependencies:data.tableFormulainumlatticelibcoinMatrixmvtnormpartykitrlangrpartsurvivaltinyplot

Abstract art with parttree and friends

Rendered fromparttree-art.Rmdusingknitr::rmarkdownon Feb 15 2025.

Last update: 2025-01-16
Started: 2023-01-04

Introduction to parttree

Rendered fromparttree-intro.Rmdusingknitr::rmarkdownon Feb 15 2025.

Last update: 2025-01-16
Started: 2023-01-02

Readme and manuals

Help Manual

Help pageTopics
Visualize tree partitions with ggplot2geom_parttree
Convert a decision tree into a data frame of partition coordinatesparttree parttree.constparty parttree.LearnerClassifRpart parttree.LearnerRegrRpart parttree.rpart parttree.workflow parttree._rpart
Plot decision tree partitionsplot.parttree