affiliationgraph: Visualize an affiliation network

Description Usage Arguments Examples

Description

Function for plotting affiliation networks.

Usage

1

Arguments

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.

Examples

 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)

dkoban/SNAToolKit documentation built on May 20, 2019, 1:28 p.m.