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

Package details

AuthorGrant McDermott [aut, cre] (<https://orcid.org/0000-0001-7883-8573>), Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>), Brian Heseung Kim [ctb] (<https://orcid.org/0000-0002-7988-1802>), Julia Silge [ctb] (<https://orcid.org/0000-0002-3671-836X>)
MaintainerGrant McDermott <gmcd@amazon.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://grantmcdermott.com/parttree/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("parttree")

Try the parttree package in your browser

Any scripts or data that you put into this service are public.

parttree documentation built on April 4, 2025, 2:47 a.m.