View source: R/layout_fishbone.R
| layout_fishbone | R Documentation |
Calculates node coordinates for a glycan structure to mimic SNFG style. Supports customizable direction and branch length.
layout_fishbone(graph, direction = "left", length = 1, angle_sep = 30, ...)
graph |
An igraph object. |
direction |
The direction of the main chain growth ("left", "right", "up", "down"). Default is "left". |
length |
The distance between nodes. Default is 1. |
angle_sep |
The angle separation for branches in degrees. Default is 30. |
... |
Additional arguments. |
A matrix of x, y coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.