adjust_cnet_set_relayout_gene | R Documentation |
Adjust Cnet Set nodes then relayout Gene nodes
adjust_cnet_set_relayout_gene(
g,
nodes = NULL,
x = 0,
y = 0,
use_grep = TRUE,
do_reorder = TRUE,
spread_labels = TRUE,
repulse = 4,
verbose = FALSE,
...
)
g |
|
nodes |
|
x , y |
|
use_grep |
|
do_reorder |
|
spread_labels |
|
repulse |
|
verbose |
|
... |
additional arguments are passed to functions
|
This function operates on a Cnet igraph
object,
distinguished by node attribute "nodeType"
with
value "Gene"
for Gene nodes, and "Set"
for Set nodes.
This function is intended to help move a Set
node
to improve visual spacing between nodes, then it
re-positions only the Gene
nodes using layout_with_qfr()
,
keeping the Set
nodes in fixed positions.
It calls nudge_igraph_node()
using arguments nodes,x,y
,
then defines the layout coordinates of Set nodes
as constraints
that therefore are not allowed to change
when calling layout_with_qfr()
. Note that Gene node
coordinates are allowed to change, even if Gene nodes
were included in nodes
.
Other jam cnet igraph functions:
adjust_cnet_nodeset()
,
apply_cnet_direction()
,
apply_nodeset_spacing()
,
get_cnet_nodeset()
,
make_cnet_test()
,
nudge_igraph_node()
,
rotate_igraph_layout()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.