How to make a humanoid network stick man :)
simpleNetwork
roshan
07/19/2015
library(networkD3)
src = c('a','a','c','b','d','d','d','e','e','e','e','f','g','j','j','j','h','i')
target=c('b','c','d','d','c','b','e','d','f','g','j','e','e','e','h','i','j','j')
nd =data.frame(src,target)
lets view the data
nd
## src target
## 1 a b
## 2 a c
## 3 c d
## 4 b d
## 5 d c
## 6 d b
## 7 d e
## 8 e d
## 9 e f
## 10 e g
## 11 e j
## 12 f e
## 13 g e
## 14 j e
## 15 j h
## 16 j i
## 17 h j
## 18 i j
plot a network diagram
simpleNetwork(nd)
No comments:
Post a Comment