Skip to content

parttree

0.1.3

Visualize Simple 2-D Decision Tree Partitions

0packages depend
7.6Kdownloads / year
71.9%test coverage
13/13checks pass

Overview

About
Maintained by Grant McDermottFirst published 2025-01-164 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.6 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.01
71.9%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 165 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

7.6K
CRAN downloads in the past year
Rank #15,049 · ~21/day · ~633/mo
Daily download trend is not available in this view yet.
22630 days
74390 days
7.6K1 year
Compare downloads with other packages →
Also on115 r2u35 autocran

Repository

Repository
101Stars
24Forks
0Open issues
0Open PRs
3Releases
164Commits
5Contributors
164 commits · Last activity 2026-03-31 · 0% stars, 30d

Stars over time

2025-07-15 · 992026-07-07 · 101

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (7)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 811 (44%)Vignettes 589 (32%)Rd 458 (25%)
Code characteristics
Object systems
S37
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

Loading call graph…

Lowest coverage

8 functions
FunctionCycloCoverage
geom_parttree exp40%
parttree._rpart20%
parttree.workflow20%
plot.parttree1482%
parttree.constparty1692%
parttree.rpart1593%

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (3)
Contributor
Contributor
Contributor
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.3Latest
    2026-03-31 · current release · diff ↗
  • 0.1.2
    2026-01-15 · diff ↗
  • unarchivedReturned to CRAN
    2026-01-15
  • archivedRemoved from CRAN
    2026-01-15
    policy violation On Internet access
  • 0.1.1
    2025-05-10 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.0
    2025-01-16
  • R
    R 4.4.0 released · 2024-04-24

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
Report a problem with this page →