Description Usage Arguments Examples
Function for plotting affiliation networks.
1 | affiliation_graph(edgelist)
|
edgelist |
a dataframe that contains a list of people and their associated activities. The first column should list the name of the source node; the second column should list associated activities. |
1 2 3 4 5 6 7 8 9 10 | # minimal example
agents <- c("Bill", "Bill", "Bill", "Bob", "Bob", "Bob", "John", "John")
activities <- c("Act1","Act2", "Act3","Act1", "Act2","Act4","Act3","Act4")
affiliations <- data.frame(agents, activities)
affiliation_graph(edgelist = affiliations)
# FM 3-24 example affiliation matrix
data("fm3_24_affiliation")
affiliations <- as.data.frame(fm3_24_affiliation)
affiliation_graph(edgelist = affiliations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.