These functions create and operate on triads in affiliation
networks. In this context, a *triad* is the schedule
of a
subset of three distinct actors.
make_triad(lambda, w, actor_names = c("p", "q", "r"), event_names = if (sum(c(lambda, w)) == 0) c() else as.character(1:sum(c(lambda, w)))) is_triad(graph) triad_class(graph, actors = V(graph)[V(graph)$type == FALSE], as.partition = TRUE, format = "list") layout_triad(triad = NULL, lambda = NULL, w = NULL, scale = 0.3, angdir = -1, rot = -pi/2, rot_lambda = c(0, 0, 0), rot_w = pi/12) plot_triad(triad = NULL, lambda = NULL, w = NULL, layout = NULL, prettify = TRUE, cex = 1, scale = 0.3, angdir = -1, rot = -pi/2, rot_lambda = c(0, 0, 0), rot_w = pi/12, actor_names = c("p", "q", "r"), event_names = if (sum(c(lambda, w)) == 0) c() else as.character(1:sum(c(lambda, w))), xlim = NULL, ylim = NULL, ...) an_triad(...) is.triad(graph) triad.class(graph, actors = V(graph)[V(graph)$type == FALSE], as.partition = TRUE, format = "list") an.triad(...) layout.triad(triad = NULL, lambda = NULL, w = NULL, scale = 0.3, angdir = -1, rot = -pi/2, rot_lambda = c(0, 0, 0), rot_w = pi/12) plotTriad(triad = NULL, lambda = NULL, w = NULL, layout = NULL, prettify = TRUE, cex = 1, scale = 0.3, angdir = -1, rot = -pi/2, rot_lambda = c(0, 0, 0), rot_w = pi/12, actor_names = c("p", "q", "r"), event_names = if (sum(c(lambda, w)) == 0) c() else as.character(1:sum(c(lambda, w))), xlim = NULL, ylim = NULL, ...)
lambda | A non-negative integer vector of length three indicating the number of events attended by each pair of actors and not by the third (*exclusive* events). |
---|---|
w | A non-negative integer indicating the number of events attended by all three actors (*inclusive* events). |
actor_names, event_names | Actor and event names (actor names default to "p", "q", and "r"; event names default to positive integers). |
graph | An affiliation network, in some cases must be a triad. |
actors | A vector of three actor nodes in |
as.partition | Whether to sort the exclusive events, versus reporting
them in order of the nodes; defaults to |
format | Character matched to "list" or "vector"; whether to return the triad class as a list of \(\lambda=(x,y,z)\) and \(w\) or as a vector of \(w\), \(x=\lambda_1\), \(y=\lambda_2\), and \(z=\lambda_3\). |
triad | An affiliation network with exactly three distinct actors. |
scale | A scaling parameter for the entire plot. |
angdir | A rotation direction parameter ( |
rot, rot_lambda, rot_w | Angular orientation parameters for the entire triad, for the exclusive events of two actors, and for the inclusive events of all three actors. |
layout | A two-column numeric matrix interpretable as a
|
prettify | Logical; whether to use |
cex | Node size scaling parameter. |
xlim, ylim | Custom bounds on the horizontal and vertical axes. |
... | Additional arguments passed to |