Skip to content

Commit 9260bc4

Browse files
committed
DiagrammeR
1 parent 9a416f3 commit 9260bc4

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

Prisma_flow_chart.R

+39-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,42 @@ prisma(found = 193,
99
full_text_exclusions = 112,
1010
qualitative = 26,
1111
quantitative = 26,
12-
width = 800, height = 800)
12+
width = 800, height = 800)
13+
14+
#https://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html#attributes
15+
library(DiagrammeR)
16+
grViz("
17+
digraph boxes_and_circles {
18+
19+
# a 'graph' statement
20+
graph [overlap = true, fontsize = 10]
21+
22+
# several 'node' statements
23+
node [shape = box,
24+
fontname = Helvetica]
25+
Stroke
26+
27+
node [shape = oval,
28+
fixedsize = false,
29+
color=red,
30+
width = 0.9]
31+
Hypertension; 'No Hypertension'
32+
33+
node [shape= circle,
34+
fontcolor=red,
35+
color=blue,
36+
fixedsize=false]
37+
38+
Hypokalemia; 'No Hypokalemia'
39+
40+
# several 'edge' statements
41+
edge [arrowhead=diamond]
42+
43+
Stroke->{Hypertension, 'No Hypertension'}
44+
Hypertension->{Hypokalemia, 'No Hypokalemia'}
45+
46+
}
47+
48+
49+
50+
")

0 commit comments

Comments
 (0)