Graphics, Figures & Tables ⇒ Y-shape for tree diagram in Tikz
Y-shape for tree diagram in Tikz
I need some help getting started with a tree diagram. It should have a "Split" and a "Flat", both objects identical, and should be depicted like a capital Y, i.e., a vertical base, then two branches going off at roughly ninety degrees from each other. These will then be placed onto one another to form a tree, a base onto the ends of the branches -- or a final Flat terminated with piece of "Fruit" on the left branch and a "Bud" on the right. This is from The Little MLer BTW.
Y-shape for tree diagram in Tikz
A picture is worth a thousand words. A photographed hand-drawn picture or uploading/linking an existing picture could help give you advice on how to approach the solution.
Y-shape for tree diagram in Tikz
The chapter 21 "Making Trees Grow" in the documentation should help you to expand my example.
Code: Select all
Code, edit and compile here:
\documentclass[tikz, border=5pt]{standalone}\begin{document}\begin{tikzpicture}[font=\sffamily,grow'=up,% The default value of level distance and sibling distance is 1.5 cm.sibling distance=3cm]\coordinatechild {child {child {child {child {child {node {Peach}}child {node {Bud}}}}child}}child {child {child[missing]child}}};\end{tikzpicture}\end{document}