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.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.01
71.9%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • 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 #14,200 · ~21/day · ~630/mo
Daily download trend is not available in this view yet.
23830 days
72290 days
7.6K1 year
Compare downloads with other packages →
Also on121 r2u20 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-08-16.

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

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

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("parttree")
McDermott, G., Kim, B. H., Silge, J., & Zeileis, A. (2026). parttree: Visualize Simple 2-D Decision Tree Partitions (Version 0.1.3) [Computer software]. https://doi.org/10.32614/CRAN.package.parttree

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for parttree version 0.1.3 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy