Layout algorithms are stored in a registry and selected by name through the
layout argument of splot, soplot and
sn_layout. register_layout() adds a layout function,
get_layout() returns the function of a registered layout, and
list_layouts() returns the names of all registered layouts.
Registering an existing name replaces that layout for the rest of the
session.
Value
register_layout() returns NULL invisibly.
get_layout() returns the layout function, or NULL if no
layout has that name. list_layouts() returns a character vector of
layout names.
Examples
list_layouts()
#> [1] "circle" "oval" "ellipse"
#> [4] "spring" "fr" "fruchterman-reingold"
#> [7] "target" "saqr" "groups"
#> [10] "grid" "random" "star"
#> [13] "bipartite" "custom" "gephi_fr"
#> [16] "gephi"
splot(regulation_net, layout = "circle")
