I have around 100,000 rows in a dataframe and I need to visualize it using a network graph in R. However, since there is too much data, it is very difficult to analyze visually and I am not sure how to do this since I am new in R.
This is what I am aiming for:
And this is what my df looks like:
Location | Manager |
---|---|
L1 | M1 |
L2 | M3 |
L76 | M1 |
L34 | M1 |
L45 | M1 |
L18 | M4 |
L98 | M7 |
L145 | M4 |
L134 | M1 |
L22 | M5 |
L5 | M7 |
L56 | M7 |
L11 | M8 |
L76 | M5 |
For example, location L22 should be connected to location L76 since they have M5 in common, and so on. I also want the weight of the line connecting these locations to be based on the number of managers they have in common.
Thanks!