I have a question about how I might try to rearrange my data and try to build a "network" visualization of interactions in R. Basically I have a list of meetings and their attendees organized as follows:
Meeting ID | Attendee |
---|---|
1 | John |
1 | Mark |
1 | Kevin |
2 | Kevin |
2 | Sam |
I want to create a visualization that shows a network of people that any individual has spoken to. So, for example, if I choose Kevin, I'd want a central node to be Kevin with two connected nodes representing Sam, Mark, and John, since Kevin participated in a meeting with all of them. It'd also be cool to adjust the size of the nodes based on the number of interactions.
It'd also be useful if you could help re-arrange the data into the following shape, and then I can try to work something out from there.
Individual | Contact | Quantity of Interactions |
---|---|---|
Kevin | John | 1 |
Kevin | Mark | 1 |
Kevin | Sam | 1 |