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
)The tree with nodes to position.
The x coordinate of the root node.
The y coordinate of the root node.
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.
The minimum distance between adjacent siblings of the tree
The minimum distance between adjacent subtrees of a tree.
The fixed distance between adjacent levels of the tree.
The left size of a node.
The right size of a node.
The top size of a node.
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