| .applyRadialLayout | R Documentation |
Transforms Cartesian pedigree coordinates (x_pos = horizontal slot, y_pos = generation) into Cartesian coordinates derived from a polar mapping, producing a circular or fan-shaped layout. The transformation maps x_pos to an angular position and y_pos to a radial distance, then converts back to (x, y) via standard polar-to-Cartesian conversion. Family bar positions (x_fam, y_fam) are transformed using the same mapping.
.applyRadialLayout(ds, config)
applyRadialLayout(ds, config)
ds |
A data frame containing at minimum x_pos, y_pos, x_fam, and y_fam columns, as produced by calculateCoordinates and .adjustSpacing. |
config |
A list of configuration options for customizing the plot. See getDefaultPlotConfig for details of each option. The list can include:
|
The input data frame with x_pos, y_pos, x_fam, and y_fam replaced by their radially transformed equivalents.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.