Bulk Cnet plot adjustments
Usage
bulk_cnet_adjustments(
g,
nodeset_adj,
node_adj,
apply_negative = TRUE,
nodesets = NULL,
...
)Arguments
- g
igraphobject expected to be a Cnet object with vertex attribute 'nodeType' containing values 'Gene' and 'Set'.- nodeset_adj
data.framerecognizing five colnames:nodeset: character name of each nodeset
x,y: numeric x,y coordinate adjustments to add to existing coordinates
rotate_degrees: numeric angle in degrees to rotate existing nodes
percent_spacing: absolute spacing to enforce for nodes in the nodeset.
- node_adj
data.framerecognizing five colnames:node:
charactername of each nodex,y:
numericx,y coordinate adjustments to add to existing coordinateslabel.dist:
numericvalue to add to existing label distance.label.degree:
numericangle in degrees to add to the existing angle.
- apply_negative
logicalwhether to allow shrinking nodeset spacing.- nodesets
listas output fromget_cnet_nodesets(), or any list named by nodeset, containingcharactervector of node names.- ...
additional arguments are ignored.
Details
This function applies a series of adjustments to nodesets and nodes in
a Cnet igraph object. Nodesets are adjusted first, then nodes
are adjusted afterward. This order is important because the x,y
coordinates may be altered by nodeset first, before the node adjustment
is applied.
All x,y coordinate adjustments are performed using scaled units,
using the max x- or y-range for the plot layout.
All Cnet igraph plots are assumed to use asp=1 to enforce
aspect ratio 1, in order to maintain the intended visual distances
used by the layout algorithms.
Therefore it is possible to expand a plot layout such that the overall scale is wider than before, thereby affecting the scaled unit space.
In any event, this function is intended to replicated the effect done
by launch_shinycat().
See also
Other jam cnet utilities:
adjust_cnet_nodeset(),
adjust_cnet_set_relayout_gene(),
apply_nodeset_spacing(),
get_cnet_nodeset(),
launch_shinycat(),
make_cnet_test()