parttree
0.1.3Visualize Simple 2-D Decision Tree Partitions
Overview
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'.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/grantmcdermott/parttree on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 3.5 median / 16 max
- Test cases
- 15 / 0.01 per code line
Test coverage
Line coverage
72%
Expression
69.9%
Tests / Examples
71.9% / – ex
Functions
8 2 exported
Complexity
7.1 avg / 16 max
Call network
8 nodes / 4 edges
Call graph
Open call graph →Lowest coverage
8 functions| Function | Cyclo | Coverage |
|---|---|---|
| geom_parttree exp | 4 | 0% |
| parttree._rpart | 2 | 0% |
| parttree.workflow | 2 | 0% |
| plot.parttree | 14 | 82% |
| parttree.constparty | 16 | 92% |
| parttree.rpart | 15 | 93% |
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2025-01-16
- Total releases
- 4 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 912 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet