I have some data that shows Twitter connections between people (i.e. people that tag other users in their tweets) and would like to map out the connections between people. In some cases the relationship is reciprocal, as in both people have tagged the other while some people have been tagged but have not tweeted.
In the example below, Person A has tagged Person B and Person C, while Person C has only tagged Person B. The arrows are unidirectional from Person A -> Person C and from Person C -> Person B, but bidirectional between Person A <-> Person B. Is it possible to makes these arrows different colours?
library(igraph) df <- data.frame (from = c("Person A", "Person A", "Person B", "Person C"), to = c ("Person B", "Person C", "Person A", "Person B"), weight = c (1, 3, 4, 5) ) g_1 <- graph.data.frame(df, directed = TRUE) set.seed(123) plot (g_1, edge.width = E(g_1)$weight)