treeForceTranslateCoords: Translate points in force-directed layout

Description Usage Arguments Value

View source: R/tree-force-layout.R

Description

This function can be used in addition to treeForceRotateCoords in order to fine-tune the presentation of a force-directed layout. For instance, this can be used to achieve an improved 2D visualization by modifying overlapping portions of the layout.

Usage

1
treeForceTranslateCoords(object, cells = NULL, seg = NULL, x, y, z)

Arguments

object

An URD object

cells

(Character vector) Cells to modify (Default NULL is all cells in the force-directed layout)

seg

(Character) Instead of specifying cells, just grab all cells from this segment and downstream. Ignored if cells is specified.

x

(Numeric) Distance to move cells along x-axis

y

(Numeric) Distance to move cells along y-axis

z

(Numeric) Distance to move cells along z-axis

Value

An URD object with the coordinates of some cells in @tree$walks.force.layout modified.


farrellja/URD documentation built on June 17, 2020, 4:48 a.m.