create_dot_body: Writes each node information If it is a leaf node: show it in...

View source: R/policy_tree-plot.R

create_dot_bodyR Documentation

Writes each node information If it is a leaf node: show it in different color, show number of samples, show leaf id If it is a non-leaf node: show its splitting variable and splitting value

Description

Writes each node information If it is a leaf node: show it in different color, show number of samples, show leaf id If it is a non-leaf node: show its splitting variable and splitting value

Usage

create_dot_body(tree, index = 1)

Arguments

tree

the tree to convert

index

the index of the current node


policytree documentation built on June 22, 2024, 9:47 a.m.