I have a dataframe of paper IDs and author names like so:
library(tidyverse)
df <- tribble(
~id, ~name,
1, "a",
1, "b",
2, "b",
2, "c",
3, "b",
3, "c"
)
The interpretation is that authors a and b wrote paper 1 together, while authors b and c wrote papers 2 and 3 together.
I would like to plot this using e.g. ggraph
like so:
a - b = c
That is, I would like to to have authors as nodes and number of papers co-authored as edge weights.