4

I would like to create this simple tree diagram in LYX. I tried using forest but I did not figure out how to add text to the different levels and display percentages.

enter image description here

2
  • 3
    Show us what you've tried so far... Aug 25, 2016 at 10:43
  • 1
    Welcome! If you post the code for a small document using Forest (or something else), somebody can help you with adding the labels etc.
    – cfr
    Aug 25, 2016 at 12:40

1 Answer 1

8

Please always include the code you've got as it makes it much easier to help effectively. Not knowing how you tried to do things or what you have done makes it really hard to provide meaningful explanation.

The percentages, for example, are just done in the usual way i.e. with \%. The labels can be created with label.

\documentclass[border=10pt,multi,tikz]{standalone}
\usepackage{forest}

\begin{document}
\begin{forest}
  [, circle, fill, inner sep=1pt
    [80\%, label=left:Data Gathering
      [70\%, label=left:Data Analysis]
      [30\%]
    ]
    [20\%
      [90\%]
      [10\%]
    ]
  ]
\end{forest}
\end{document}

tree

2
  • 1
    Great. Thank you so much. I will post the code next time. Aug 26, 2016 at 8:07
  • @RoxanneJ.Kovacs Sounds good to me ;).
    – cfr
    Aug 26, 2016 at 16:33

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.