How to create a diagram

with the SKEMA Quantum Studio framework

Anne Sophie Gill https://www.skemagloballab.io/gillAnneSophie.html (SKEMA Global Lab in AI)https://skemagloballab.io , Thierry Warin https://www.nuance-r.com/principalInvestigator.html (SKEMA Business School (Raleigh, NC))https://www.skemagloballab.io
01-30-2020

Using the SKEMA Quantum Studio(Warin 2019) framework, we are going to teach you how to create a diagram like the one above.

Open the following packages


library(igraph)
library(DiagrammeR)

Create your diagram


DiagrammeR::grViz("digraph graph2 

# Choose the layout of your graph

{graph [layout = dot] 

# Customize your nodes

node [shape = rectangle, width = 1, style = filled, color = grey]

node [fillcolor = plum]
a

node [fillcolor = azure]
b c d

node [fillcolor = GreenYellow]
h i

node [fillcolor = gold]
s t u v

node [fillcolor = mistyrose]
k l

node [fillcolor = navajowhite]
g

node [fillcolor = lavender]
j

node [fillcolor = paleturquoise]
e f

node [fillcolor = honeydew]
n o p

node [fillcolor = seashell]
q r

node [fillcolor = yellow]
m

# Assign a label to each node

a [label = 'Data Science']
b [label = 'Big Data']
c [label = 'Algorithms']
d [label = 'Stats']
e [label = 'Econometrics']
f [label = 'Bayesian Statistics']
g [label = 'AI']
h [label = 'Structured']
i [label = 'Unstructured']
j [label = 'Domains']
k [label = 'Augmented Intelligence']
l [label = 'Automated Intelligence']
m [label = 'engineering']
n [label = 'social sciences']
o [label = 'management']
p [label = 'decision theory']
q [label = 'data frames']
r [label = 'tables']
s [label = 'text']
t [label = 'images']
u [label = 'sounds']
v [label = 'videos']

# Assign a path to each node

a -> b
a -> c
a -> d
b -> h
b -> i
c -> g
d -> e
d -> f
g -> j
j -> k
j -> l
k -> n
k -> o
k -> p
l -> m
i -> s
i -> t
i -> u
i -> v
h -> q
h -> r

}

")

And this is how you build a diagram with the help of the SKEMA Quantum Studio (Warin 2019) framework.

For more information about the diagrammeR package, click here


Follow SKEMA Global Lab in Augmented Intelligence

Warin, Thierry. 2019. “SKEMA Quantum Studio: A Technological Framework for Data Science in Higher Education.” https://doi.org/10.6084/m9.figshare.8204195.v2.

Citation

For attribution, please cite this work as

Gill & Warin (2020, Jan. 30). Blog: How to create a diagram. Retrieved from https://blog.skemagloballab.io/posts/2020-01-30-diagrams/

BibTeX citation

@misc{gill2020how,
  author = {Gill, Anne Sophie and Warin, Thierry},
  title = {Blog: How to create a diagram},
  url = {https://blog.skemagloballab.io/posts/2020-01-30-diagrams/},
  year = {2020}
}