c_net_layout | R Documentation |
Layout coordinates
c_net_layout(
go,
method = igraph::nicely(),
order_by = NULL,
order_ls = NULL,
seed = 1234,
line_curved = 0.5,
...
)
go |
igraph or metanet |
method |
(1) as_line(), as_arc(), as_polygon(), as_polyarc(), as_polycircle(), as_circle_tree();
(2) as_star(), as_tree(), in_circle(), nicely(), on_grid(), on_sphere(),randomly(), with_dh(), with_fr(), with_gem(), with_graphopt(), with_kk(),with_lgl(), with_mds(),. see |
order_by |
order nodes according to a node attribute |
order_ls |
manual the discrete variable with a vector, or continuous variable with "desc" to decreasing |
seed |
random seed |
line_curved |
consider line curved, only for some layout methods like as_line(), as_polygon().default:0 |
... |
add |
coors object: coordinates for nodes, columns: name, X, Y; curved for edges, columns: from, to, curved;
Other layout:
as_arc()
,
as_circle_tree()
,
as_line()
,
as_polyarc()
,
as_polycircle()
,
as_polygon()
library(igraph)
c_net_layout(co_net) -> coors
c_net_plot(co_net, coors)
c_net_plot(co_net, c_net_layout(co_net, in_circle()), vertex.size = 2)
c_net_plot(co_net, c_net_layout(co_net, in_circle(), order_by = "v_class"), vertex.size = 2)
c_net_plot(co_net, c_net_layout(co_net, in_circle(), order_by = "size", order_ls = "desc"))
c_net_plot(co_net, c_net_layout(co_net, as_polygon(3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.