Description Usage Arguments Examples
Layout as arc using the alter package.
1 2 3 4 5 6 7 | layout_arc(
g,
sourceWeight = NULL,
targetWeight = NULL,
thickness = 0.05,
marginRatio = 0.1
)
|
g |
An object of class |
sourceWeight, targetWeight |
Bare name of column containing weights of source and target in the edges data.frame. |
thickness |
Node height, between |
marginRatio |
Space ratio, between |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ig <- igraph::erdos.renyi.game(100, 1 / 100)
g2(ig, asp(x, y)) %>%
layout_arc() %>%
fig_edge(asp(color = source, shape = "arc"), opacity = .3) %>%
fig_point(asp(color = id, shape = "circle", size = value)) %>%
coord_type("polar") %>%
coord_reflect("y") %>%
axis_hide()
g2(ig, asp(x, y)) %>%
layout_arc() %>%
fig_edge(asp(color = source, shape = "arc"), opacity = .3) %>%
fig_point(asp(color = id, shape = "circle", size = value))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.