I have a data.frame showing the strength of the relationship between all possible combination of the variables at site x with the variable at site y.
set.seed(1410)
df<-data.frame(
"site.x"=c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)),
"site.y"=c(rep(c("e","f","g","h"),4)),
"bond.strength"=sample(1:100,16, replace=TRUE))
site.x site.y bond.strength
a e 27
a f 54
a g 94
a h 15
b e 58
b f 50
b g 67
b h 51
c e 58
c f 5
c g 48
c h 32
d e 5
d f 13
d g 84
d h 39
I need a diagram that can summarise the information in df in one figure. I was thinking perhaps a permutation diagram like this…..
Any suggestions how I would go about something like this? Thank you kindly.
This gives something similar using your data: