Skip to content

teemteemwang/TreeDiagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeDiagram

Visualizing cuts for either axis-align or non axis-align tree methods (e.g. decision tree, random tessellation process). (Package is available on CRAN: https://cran.r-project.org/web/packages/TreeDiagram/index.html)

install package:

install.packages("~/Desktop/TreeDiagram", repos = NULL, type = "source", INSTALL_opts="--install-tests")
library(TreeDiagram)

test with example

cancer <- read.csv(url("https://archive.ics.uci.edu/ml/machine-learning-databases/00451/dataR2.csv"))
cancer$Classification <- factor(cancer$Classification)
library(tree)
t_cancer <- tree::tree(Classification ~ ., data=cancer)

setwd("~/Desktop")
treeDiagram(cancer,t_cancer[[1]],"Classification","tree diagram for tree()")

see 'man/treeDiagram.Rd' for more description for function 'treeDiagram()'.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages