dplot3_linad: Plot a Linear Additive Tree trained by 's_LINAD' using...

View source: R/dplot3_linad.R

dplot3_linadR Documentation

Plot a Linear Additive Tree trained by s_LINAD using visNetwork

Description

Plot a Linear Additive Tree trained by s_LINAD using visNetwork

Usage

dplot3_linad(
  x,
  main = NULL,
  bg = "#FFFFFF",
  shape = "box",
  nodelabels = TRUE,
  ncases.inlabels = TRUE,
  rules.on.edges = FALSE,
  log = FALSE,
  top = NULL,
  root.col = "#202020",
  node.col = "#5a5a5a",
  leaf.col = "#178CCB",
  edge.col = "#848484",
  edge.width = 4,
  arrow.scale = 0.7,
  arrow.middle = FALSE,
  col.highlight = "#FE4AA3",
  node.font.col = NULL,
  edge.font.col = "#000000",
  sort.coefs = FALSE,
  height = NULL,
  width = NULL,
  levelSeparation = 100,
  tree.font.size = 22,
  edgethickness.by.ncases = FALSE,
  font.family = "Lato",
  tooltip.coefs = TRUE,
  tooltip.delay = 50,
  table.font.size = "16px",
  table.dat.padding = "0px",
  table.lo.col = "#0290EE",
  table.hi.col = "#FE4AA3",
  dragNodes = FALSE,
  zoomView = FALSE,
  nodeSpacing = 150,
  blockShifting = TRUE,
  edgeMinimization = TRUE,
  parentCentralization = TRUE,
  direction = "UD",
  trace = 0
)

Arguments

main

Character: Title. Default = NULL

bg

Background color. Default = "#FFFFFF" (white)

shape

Character: Node shape; one of: "square", "triangle", "box", "circle", "dot", "star", "ellipse", "database", "text", "diamond". Default = "box"

nodelabels

Logical: If TRUE, inlcude node labels. Default = TRUE

ncases.inlabels

Logical: If TRUE, include number of cases with the node labels. Default = TRUE

rules.on.edges

Logical: If TRUE, display rules on edges instead of nodes. Default = FALSE

node.col

Color for nodes. Default = #7F7F7F" (some gray)

leaf.col

Color for leaf nodes. Default = "#18A3AC" (teal)

edge.col

Color for edges. Default = "#848484" (another gray)

col.highlight

Color for surrounding edges when node is selected. Default = "#F48024" (orange)

node.font.col

Color for node labels. Default varies by shape, black or white depending if visNetwork draws labels on node or underneath

edge.font.col

Color for edge labels. Default = "#000000" (black)

sort.coefs

Logical: If TRUE, sort each coefs table. Default = FALSE

height

Float: Height for visNetwork. Default = NULL, i.e. auto

width

Float: Width for visNetwork. Default = NULL, i.e. auto

levelSeparation

Float: N of pixels to separate tree levels. Default = 100

tree.font.size

Integer: Font size for tree labels. Default = 22

edgethickness.by.ncases

Logical: If TRUE, scale edge thickness by number of cases with weight = 1

font.family

Character: Font to use throughout. Default = 'Helvetica Neue', because otherwise it may fail on a number of external viewers.

tooltip.coefs

Logical: If TRUE, show html coefficient tables on hover over nodes. This was placed here before a custom html table creation function was made to replace some impossibly slow alternatives.

tooltip.delay

Float: Delay (in milliseconds) on mouse over before showing tooltip. Default = 50

table.font.size

Character: Font size for html coefficient on-hover tables. Default = "14px"

table.dat.padding

Ignore, has no visible effect. Otherwise, Character: html table padding. Default = "0px"

table.lo.col

Color for lowest coefficient values (negative). Default = "#80FFFF" (light blue)

table.hi.col

Color for highest coefficient values (positive). Default = "#FFBE00" (light orange)

trace

Integer: If > 0, print info to console (not particularly informative). Default = 0

tree

s_LINAD tree

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.