-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagram.R
37 lines (24 loc) · 934 Bytes
/
diagram.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#####DECISION FLOW DIAGRAM#####
library("DiagrammeR")
diagram <- DiagrammeR::grViz("
digraph graph2 {
graph [layout = dot]
# node definitions with substituted label text
node [shape = ellipse, width = 2, height = 1, fillcolor = Biege]
a [label = 'TDA method']
b [label = 'Data set \u2264 3 dim']
c [label = 'Data dim reducible']
d [label = 'TDAstats \n(Rips Complex)']
x [label = 'GUDHI']
y [label = 'GUDHI \n(Alpha Complex)']
z [label = 'GUDHI \n(Alpha Complex)']
a -> x [taillabel = 'Other', labeldistance = 3.5, labelangle = 27]
b -> y [taillabel = 'Yes', labeldistance = 3, labelangle = 20]
c -> z [taillabel = 'Yes', labeldistance = 3, labelangle = 20]
a -> b [taillabel = 'Persistent \nHomology', labeldistance = 5.5, labelangle = -40]
b -> c [taillabel = 'No', labeldistance = 3, labelangle = -25]
c -> d [taillabel = 'No', labeldistance = 3, labelangle = -20]
}")
png(filename = "decision.png")
diagram
dev.off()