I am a bit stuck at drawing a taxonomy diagram. I have never used tikZ package and finding it really difficult to learn it at a short period of time. I need to draw the following taxonomy diagram. Could some please help me with the Latex code for the following diagram. I will be really grateful. Thanks.

enter image description here


This should meet the requirement -- Help on drawing a tree in latex

Data will have to be punched in

enter image description here


        my node/.style={
            inner color=gray!5,
            outer color=gray!10,
            minimum width=1cm,
%           rounded corners=3,
            text height=1.5ex,
            text depth=0ex,
            drop shadow,
        for tree={%
            my node,
            l sep+=5pt,
            edge={gray, thick},
            parent anchor=east,
            child anchor=west,
            if n children=0{tier=last}{},
            edge path={
                \noexpand\path [draw, \forestoption{edge}] (!u.parent anchor) -- +(10pt,0) |- (.child anchor)\forestoption{edge label};
                for children={
                    if={equal(n,(n_children("!u")+1)/2)}{calign with current}{}
  • 1
    Thanks, very much. I think I can build from here. :) – Amit Jul 31 '20 at 12:19
  • remove drop shadow if you do not want the shadows behind nodes – js bibra Jul 31 '20 at 12:20
  • Yes did that. It looks good without a shadow – Amit Jul 31 '20 at 12:26

There are already a right answer using forest, so this is only a community wiki comment: To start, better a simpler example.

forked edges,                        
for tree={grow=0,draw, 
    [Homo ergaster $\dagger$] 
    [Homo erectus 
        [Homo stultus] 
        [Homo sapiens  $\dagger$]]  
    [Homo habilis  $\dagger$ ]]] 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.