Layout coordinates

c_net_layout(
  go,
  method = igraph::nicely(),
  order_by = NULL,
  order_ls = NULL,
  seed = 1234,
  line_curved = 0.5,
  ...
)

Arguments

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 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_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

Value

coors object: coordinates for nodes, columns: name, X, Y; curved for edges, columns: from, to, curved;

See also

Examples

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)))