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,
  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",
  uselog = FALSE,
  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

x

rtMod object trained using s_LINAD

main

Character: Title.

bg

Background color.

shape

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

nodelabels

Logical: If TRUE, inlcude node labels.

ncases.inlabels

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

rules.on.edges

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

top

Integer: If not NULL, only show the top top coefficients.

root.col

Color for root node.

node.col

Color for nodes.

leaf.col

Color for leaf nodes.

edge.col

Color for edges.

edge.width

Numeric: Width for edges.

arrow.scale

Numeric: Scale factor for arrows.

arrow.middle

Logical: If TRUE, draw arrows in the middle of edges.

col.highlight

Color for surrounding edges when node is selected.

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.

sort.coefs

Logical: If TRUE, sort each coefs table.

height

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

width

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

levelSeparation

Numeric: N of pixels to separate tree levels.

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.

uselog

Logical: If TRUE, use log10 scale for coefficient colors.

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

Numeric: Delay (in milliseconds) on mouse over before showing tooltip.

table.font.size

Character: Font size for html coefficient on-hover tables.

table.dat.padding

Ignore, has no visible effect. Otherwise, Character: html table padding.

table.lo.col

Color for lowest coefficient values (negative)

table.hi.col

Color for highest coefficient values (positive).

dragNodes

Logical: If TRUE, allow dragging nodes.

zoomView

Logical: If TRUE, allow zooming.

nodeSpacing

Numeric: Spacing between nodes.

blockShifting

Logical: If TRUE, allow block shifting.

edgeMinimization

Logical: If TRUE, minimize edge length.

parentCentralization

Logical: If TRUE, centralize parent nodes.

direction

Character: Direction of tree. One of: "UD", "DU", "LR", "RL".

trace

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

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.