Creating treechart from tabbed text in R
I want to make a tree/flowchart of following data which is properly indented with tabs: Vertebrates fish goldfish clownfish amphibian frog toad reptiles snake lizard turtle tortoise birds sparrow crow parrot mammals dog cat horse whale How can I convert this tree data to a flowchart (with arrows going from above downwards or from left to right) (proper position to be determined by counting the number of tabs in each row). I believe it can be done with "diagram" package ( Graph flow chart of transition from states , http://cran.r-project.org/web/packages/diagram/index.html ) but could not