powered by
This function creates a configuration list for G6 AntV circular layout with all available options as parameters.
circular_layout( angleRatio = 1, center = NULL, clockwise = TRUE, divisions = 1, nodeSize = 10, nodeSpacing = 10, ordering = NULL, radius = NULL, startAngle = 0, endAngle = 2 * pi, startRadius = NULL, endRadius = NULL, width = NULL, height = NULL, ... )
A list containing the configuration for G6 AntV circular layout.
How many 2*PI are there between the first node and the last node.
2*PI
Center of layout as vector c(x, y) or c(x, y, z).
c(x, y)
c(x, y, z)
Is it arranged clockwise?
Number of segments that nodes are placed on the ring.
Node size (diameter) for collision detection.
Minimum distance between rings.
Basis for sorting nodes ("topology", "topology-directed", or "degree").
Radius of the circle (overrides startRadius and endRadius).
Starting angle of the layout.
End angle of the layout.
Starting radius of the spiral layout.
End radius of the spiral layout.
Width of layout.
Height of layout.
Additional parameters to pass to the layout. See https://g6.antv.antgroup.com/en/manual/layout/circular-layout.
circular_config <- circular_layout( radius = 200, startAngle = 0, endAngle = pi, clockwise = FALSE )
Run the code above in your browser using DataLab