Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. library(DiagrammeR)
  2.  
  3.  
  4. grViz("
  5.  
  6.  
  7. digraph dot {
  8.  
  9. graph [layout = dot,
  10. rankdir = LR]
  11.  
  12. node [shape = square,
  13. style = filled,
  14. color = grey,
  15. fontname = Helvetica]
  16.  
  17.  
  18. node [fillcolor = white]
  19. a [label = 'Location 1']
  20.  
  21.  
  22.  
  23. node [fillcolor = green]
  24. b [label = 'Location 2']
  25.  
  26. node [fillcolor = orange]
  27. c [label = 'Location 3']
  28. d [label = 'Location 4']
  29.  
  30.  
  31.  
  32. edge [color = grey]
  33. a -> {b} [label = '1,2']
  34. b -> {c} [label = '1']
  35. b -> {d} [label = '2']
  36.  
  37.  
  38.  
  39.  
  40. }")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement