Layout coordinates
c_net_layout(
go,
method = igraph::nicely(),
order_by = NULL,
order_ls = NULL,
seed = 1234,
line_curved = 0.5,
...
)
igraph or metanet
(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 layout_
;
(3) a character, "auto","backbone","centrality","circlepack","dendrogram",
"eigen","focus","hive","igraph","linear","manual","matrix",
"partition","pmds","stress","treemap","unrooted". see create_layout
order nodes according to a node attribute
manual the discrete variable with a vector, or continuous variable with "desc" to decreasing
random seed
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)))