dplot3_addtree: Plot AddTree trees

View source: R/dplot3_addtree.R

dplot3_addtreeR Documentation

Plot AddTree trees

Description

Plot AddTree trees trained with s_AddTree using data.tree::plot.Node

Usage

dplot3_addtree(
  addtree,
  col.positive = "#F48024DD",
  col.negative = "#18A3ACDD",
  node.col = "#666666",
  node.shape = "none",
  node.labels = TRUE,
  node.labels.pct.pos = NULL,
  pos.name = NULL,
  edge.col = "#999999",
  layout = "dot",
  rankdir = "TB",
  splines = "polyline",
  fontname = "helvetica",
  bg.color = "#ffffff",
  overlap = "false",
  prune = NULL,
  prune.empty.leaves = TRUE,
  remove.bad.parents = FALSE
)

Arguments

addtree

Additive Tree object created by s_AddTree

col.positive

Color for outcome positive.

col.negative

Color for negative outcome.

node.col

Color for non-terminal leaves.

node.shape

Character: Node shape, passed to data.tree::SetNodeStyle

node.labels

Logical: If TRUE, show node labels.

node.labels.pct.pos

Logical: If TRUE, show % positive cases in node labels.

pos.name

Character: Name for "positive" outcome.

edge.col

Color for edges.

layout

Character: Passed to data.tree::SetGraphStyle

rankdir

Character: Passed to data.tree::SetGraphStyle

splines

Character: Passed to data.tree::SetGraphStyle

fontname

Character: Passed to data.tree::SetGraphStyle

bg.color

Background color.

overlap

Character: Passed to data.tree::SetGraphStyle

prune

Logical: If TRUE, prune AddTree.

prune.empty.leaves

Logical: If TRUE, prune empty leaves.

remove.bad.parents

Logical: If TRUE, remove nodes with no siblings but children and give their children to their parent.

Details

Edge info and styles have been removed because of problems with DiagrammeR

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.