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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 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 λ=(x,y,z) and w or as a vector of w, x=λ_1, y=λ_2, and z=λ_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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.