apply_nodeset_spacing | R Documentation |
Apply minimum node spacing for each Cnet node set
apply_nodeset_spacing(
cnet,
percent_spacing = 3,
apply_negative = FALSE,
metric = c("median", "minimum"),
nodesets = NULL,
tolerance = 1.05,
cnet_nodesets = NULL,
debug = FALSE,
verbose = FALSE,
...
)
cnet |
|
percent_spacing |
|
apply_negative |
|
metric |
|
nodesets |
|
tolerance |
|
cnet_nodesets |
|
debug |
|
verbose |
|
... |
additional arguments are ignored. |
This function automates the process of spacing nodesets
in a Cnet plot by calling adjust_cnet_nodeset()
on
all nodesets whose median nearest node distance is
above or below a threshold.
By default nodes must be at least percent_spacing
distance apart, relative to the maximum x-axis and
y-axis layout coordinate range. Roughly speaking,
nodes are clearly visible with distance between nodes
of at least 3 percent of the coordinate range.
Nodes are not compressed down to this distance unless
using the argument apply_negative=TRUE
.
Note that this function does not detect when two
clusters overlap. For other specific layout adjustments
use adjust_cnet_nodeset()
. In future, this function
may attempt to re-position nodesets relative to
each other, but that process tends to be iterative
and is not guaranteed to have a solution.
When a nodeset contains only one node, there is no calculated
distance so it is reported as NA
when verbose=TRUE
or
debug=TRUE
. However for internal purposes the nodeset is
treated as if its nodeset spacing is exactly percent_spacing
so that no subsequent adjustments are performed on the nodeset.
igraph
Cnet object, whose nodes are adjusted
according to the arguments given.
Other jam cnet igraph functions:
adjust_cnet_nodeset()
,
adjust_cnet_set_relayout_gene()
,
apply_cnet_direction()
,
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.