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'.

Version: 0.1.0
Imports: graphics, stats, data.table, partykit, rlang, rpart, tinyplot (≥ 0.2.0)
Suggests: tinytest, tinysnapshot (≥ 0.0.3), fontquiver, rsvg, svglite, palmerpenguins, titanic, mlr3, parsnip, workflows, magick, imager, knitr, rmarkdown
Enhances: ggplot2 (≥ 3.4.0)
Published: 2025-01-16
DOI: 10.32614/CRAN.package.parttree
Author: Grant McDermott ORCID iD [aut, cre], Achim Zeileis ORCID iD [ctb], Brian Heseung Kim ORCID iD [ctb], Julia Silge ORCID iD [ctb]
Maintainer: Grant McDermott <gmcd at amazon.com>
BugReports: https://github.com/grantmcdermott/parttree/issues
License: MIT + file LICENSE
URL: https://grantmcdermott.com/parttree/
NeedsCompilation: no
Materials: README NEWS
CRAN checks: parttree results

Documentation:

Reference manual: parttree.pdf
Vignettes: Abstract art with parttree and friends (source, R code)
Introduction to parttree (source, R code)

Downloads:

Package source: parttree_0.1.0.tar.gz
Windows binaries: r-devel: parttree_0.1.0.zip, r-release: not available, r-oldrel: parttree_0.1.0.zip
macOS binaries: r-release (arm64): parttree_0.1.0.tgz, r-oldrel (arm64): parttree_0.1.0.tgz, r-release (x86_64): parttree_0.1.0.tgz, r-oldrel (x86_64): parttree_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=parttree to link to this page.