Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rotateTreePoints

rotateTreePoints.data.frame


Description

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

Usage

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

an R package for visualization of tree and annotation data

v2.4.2
Artistic-2.0
Authors
Guangchuang Yu [aut, cre, cph] (<https://orcid.org/0000-0002-6485-8781>), Tommy Tsan-Yuk Lam [aut, ths], Shuangbin Xu [aut] (<https://orcid.org/0000-0003-3513-5362>), Yonghe Xia [ctb], Justin Silverman [ctb], Bradley Jones [ctb], Watal M. Iwasaki [ctb], Ruizhu Huang [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.