Skip to content

parttree

Visualize Simple 2-D Decision Tree Partitions

v0.1.3 · Mar 30, 2026 · MIT + file LICENSE

Description

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

Downloads

CRAN

257

Last 30 days

16327th

993

Last 90 days

7.6K

Last year

Trend: +23% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

34

Last 90 days

123

Last year

Trend: -60.9% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies data.table partykit rlang rpart tinyplot parttree

Version History

5 tracked
updated 0.1.3 ← 0.1.2 diff Mar 31, 2026
new 0.1.2 Mar 10, 2026
updated 0.1.2 ← 0.1.1 diff Jan 14, 2026
updated 0.1.1 ← 0.1.0 diff May 9, 2025
new 0.1.0 Jan 15, 2025