Learn R Programming

ggtangle (version 0.1.1)

layout_fishbone: Glycan Layout Algorithm (Fishbone/SNFG-like)

Description

Calculates node coordinates for a glycan structure to mimic SNFG style. Supports customizable direction and branch length.

Usage

layout_fishbone(graph, direction = "left", length = 1, angle_sep = 30, ...)

Value

A matrix of x, y coordinates.

Arguments

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.