# how could we create this tree diagram?

How could we create the following tree diagram in a seperate page which has horizontal landscape?

• What is the problem? The tree or the “separate page and landscape” thing? What have you tried? Have you seen forest? – Qrrbrbirlbel Jun 13 '13 at 20:50
• Actually both. I'm gonna check this out, but any help is more than welcome. – Y_gr Jun 13 '13 at 20:54
• For the landscape part, take a look at landscape and the lscape package. – Qrrbrbirlbel Jun 13 '13 at 21:12

A rough answer based on forest:

\documentclass{standalone}

\usepackage{forest}

\begin{document}

\forestset{
L1/.style={fill=green,},
L2/.style={fill=orange,edge={orange,line width=2pt}},
L3/.style={fill=yellow,edge={yellow,line width=2pt}},
L4/.style={fill=pink,edge={pink,line width=2pt}},
}

\begin{forest}
for tree={
grow=0,reversed, % tree direction
parent anchor=east,child anchor=west, % edge anchors
edge={line cap=round},outer sep=+1pt, % edge/node connection
rounded corners,minimum width=15mm,minimum height=8mm, % node shape
l sep=10mm % level distance
}
[AAAA,L1
[EEEE,L2
[EEEE,L3
[YYYY,L4][AAAA,L4]
]
[DDDD,L3
[DDDD,L4][KKKK,L4]
]
[PPPP,L3
[KKKK,L4][KKKK,L4]
]
]
[OOOO,L2]
]
\end{forest}

\end{document}

• I'm really disappointed in you, Kevin, for not copying the exact text from the original ;) – Christian Jun 13 '13 at 22:22
• Maybe edge={line cap=round} and outer sep=+1pt (for drawn nodes: outer sep=\pgflinewidth+1pt) to have nicer edges and better edge/node connection? – Qrrbrbirlbel Jun 13 '13 at 22:55
• @Qrrbrbirlbel: Thanks for the tip! The answer is updated. – Herr K. Jun 14 '13 at 2:55
• @Christian: I don't know... It's all Greek to me :-p – Herr K. Jun 14 '13 at 2:56