Draw a network's edges
edges.RdAdds a directed edge network to the plot through qeviz::qe_edges(). By
default it is the mean network of every unit in the set; weights draws
another network, typically one group's rows of set$line.weights. Node
sizes follow the drawn network (each node's diameter is the summed width
of the edges directed at it, plus its self-connection).
Usage
edges(
x,
...,
weights = NULL,
edge_color = c("#FF0000", "#0000FF"),
multiplier = 1,
nodes = NULL
)Arguments
- x
An
ena.ordered.set, or a plot of one fromplot.ena.ordered.set().- ...
Passed to
qeviz::qe_edges()(e.g.threshold,name,color_scale,self_size,edge_width; a legacy plot setsedge_widthto its data-unit scale unless given here).- weights
The network to draw: a numeric vector of edge weights in the set's edge-column order, or rows of line weights to average (e.g.
set$line.weights$Condition$FirstGame). Default: the mean of all units.- edge_color
One colour, or
c(positive, negative)colours for the edge weights.- multiplier
Magnifies the edge widths and node sizes of the plot (the plot is labelled with the factor).
- nodes
Node positions to draw the edges between, in place of the set's (a table like
set$rotation$nodes).