Plot an ONA set
plot.ena.ordered.set.RdCreates a qeviz::qe_plot() for an ordered set. The plot starts empty:
add the mean network with edges(), the code nodes with nodes() and the
unit points with units(). Any qeviz chain function can be used on the
result too, for example qe_edges("FirstGame", compare = "SecondGame").
Usage
# S3 method for class 'ena.ordered.set'
plot(
x,
y,
...,
dimensions = NULL,
group_col = NULL,
scale_points = FALSE,
legacy = FALSE,
max_axis_marker = 3
)Arguments
- x
An
ena.ordered.setfrommodel().- y
Ignored (present for the
plot()generic).- ...
Passed to
qeviz::qe_plot()(e.g.title,width,height,range).- dimensions
The two dimensions to plot, by name (e.g.
c("SVD2", "SVD3")). Default: the first two.- group_col
Metadata column that groups the units, used for qeviz's group means and
qe_edges(group =). Default:"Condition"when the set has that column, otherwise none.- scale_points
Whether qeviz rescales the points to the extent of the nodes. Default
FALSE: ONA's node positions are already fitted to the points, so both are drawn as they are in the set.- legacy
Draw the plot the way ONA 0.1 did: axes fixed at
c(-max_axis_marker, max_axis_marker)with the axis cross shown, and edge widths and node sizes in data units (a weight of 1 is as wide as one unit of the axes). DefaultFALSE: qeviz fits the axes to the plot and draws a weight of 1 as 4% of the plot width. Use it to keep figures comparable with ones made before plotting moved to qeviz.- max_axis_marker
Half the axis range when
legacy = TRUE.