rotateTreePoints: rotateTreePoints.data.frame

Description Usage Arguments Value

Description

Rotate the points in a tree data.frame around a pivot node by the angle specified.

Usage

1
rotateTreePoints.df(df, pivot_node, nodes, angle)

Arguments

df

tree data.frame

pivot_node

is the id of the pivot node.

nodes

list of node numbers that are to be rotated by angle around the pivot_node

angle

in range [0,2], ie degrees/180, radians/pi

Value

updated tree data.frame with points rotated by angle


ggtree documentation built on Nov. 15, 2020, 2:09 a.m.