position_tree {EpiContactTrace}R Documentation

Position nodes in a tree

Description

This function determines the coordinates for each node in a tree.

Usage

position_tree(tree, x = 0, y = 0, orientation = c("North", "South",
  "East", "West"), sibling_separation = 4, subtree_separation = 4,
  level_separation = 1, left_size = 1, right_size = 1, top_size = 1,
  bottom_size = 1)

Arguments

tree

The tree with nodes to position.

x

The x coordinate of the root node.

y

The y coordinate of the root node.

orientation

The orientation of the tree. North, the root is at the top. South, the root is at the bottom. East, the root is at the left. West, th root is at the right.

sibling_separation

The minimum distance between adjacent siblings of the tree

subtree_separation

The minimum distance between adjacent subtrees of a tree.

level_separation

The fixed distance between adjacent levels of the tree.

left_size

The left size of a node.

right_size

The right size of a node.

top_size

The top size of a node.

bottom_size

The bottom size of a node.

References


[Package EpiContactTrace version 0.12.0 Index]