position_tree {EpiContactTrace} | R Documentation |
This function determines the coordinates for each node in a tree.
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)
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. |
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. |
John Q. Walker II, A node positioning algorithm for general tress.
http://www.cs.unc.edu/techreports/89-034.pdf