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 |
|
---|---|
Author | Grant 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>) |
Maintainer | Grant McDermott <gmcd@amazon.com> |
License | MIT + file LICENSE |
Version | 0.1.0 |
URL | https://grantmcdermott.com/parttree/ |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.