I need this organogram explicit, some boxes are over others. What I must do?
I think I need to increase the horizontal distance between nodes, but which way?
Code: Select all
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{shapes,positioning}
\usepackage{amsmath}
\usepackage{xspace}
\begin{document}
\begin{tikzpicture}[
grow=right,
level 1/.style={sibling distance=3.5cm,level distance=3.5cm},
level 2/.style={sibling distance=3.5cm,level distance=4.5cm},
edge from parent/.style={very thick,draw=blue!40!black!60,
shorten >=5pt, shorten <=5pt},
edge from parent path={(\tikzparentnode.east) -- (\tikzchildnode.west)},
kant/.style={text width=2cm, text centered, sloped},
every node/.style={text ragged, inner sep=2mm},
punkt/.style={rectangle, rounded corners, shade, top color=white,
bottom color=blue!50!black!20, draw=blue!40!black!60, very
thick }
]
\node[punkt, text width=3.75em] {Critical Illness Patients}
%Lower part lv1
child {
node[punkt, text width=3em] {$\sim$ TBI}
%child 1
child {
node [punkt, text width=6.5em] {\textbf{Neurological Demage}}
%child 1
child {node [punkt, text width=6.5em] {\textbf{Brain Death}}}
%child 2
child {node [punkt, text width=6.5em]{\textbf{Recovery}}}
}
%child 2
child {
node [punkt, text width=6.5em]{\textbf{$\sim$ Neurological Demage}}
%child 1
child {node [punkt, text width=6.5em]{\textbf{Recovery}}}
}
}
%Upper part, lv1
child {
node[punkt, text width=3em] {TBI}
%child 1
child {
node [punkt, text width=6.5em] {\textbf{ND}}
%child 1
child {node [punkt, text width=6.5em] {\textbf{Brain Death}}}
%child 2
child {node [punkt, text width=6.5em]{\textbf{Cardiac arrest without Brain Death}}}
%child 3
child {node [punkt, text width=6.5em]{\textbf{Recovery}}}
}
%child 2
child {
node [punkt, text width=6.5em]{\textbf{$\sim$ Neurological Demage}}
edge from parent
node[kant, above] {}}
edge from parent{
node[kant, above] {}}
};
\end{tikzpicture}
\end{document}