I need to draw an organizational chart of the company in R. I have an example but I would like the arrows to leave the same point.
What I expect (from PowerPoint):
What I got (in R):
Code:
grViz("
digraph {
graph[splines=ortho, nodesep=1]
node[shape=box]
President;Fun1;Fun2;Fun3;
President->{Fun1,Fun2,Fun3}
}
")
you need to utilise blank/empty nodes, something like this, (if you don't want the arrows add
[dir = none]
to the last lines e.g. (blank_3 -> Fun1 [dir = none]
):