3

I have a problem! I want to draw an unrooted phylogenetic tree like this one:

enter image description here

(Image taken from commons.wikimedia)

I've tried with the package newicktree, but without success! Anyone can help me please? If it is drawable without newicktree package it's ok too! Thanks!

    \begin{figure}[h!]
    \centering
    \begin{newicktree}
        \setunitlength{4cm} \nobranchlengths \nodelabelformat{}
        \contemporarytips[30] \drawtree{ (((A,B)X,C)Y,D)Z;}
    \end{newicktree}    
    \caption{Example of phylogenetic tree.}
    \label{fig:phyltree}
\end{figure}
  • Draw it?? I can't even say it! Welcome to the site! Perhaps showing us an actual minimum (non)working example of what you've tried would get us started. – Steven B. Segletes Jun 25 '15 at 16:01
  • I didn't find better words to say it :D I hope that the problem is equally clear :) – Antonio Panzetta Jun 25 '15 at 16:05
  • 1
    The problem is clear enough, but by not providing any code to get us started, you are asking the community of volunteers to sit down, learn the syntax of a potentially unknown package, and type it all in from scratch. You are more likely to get assistance if you provide some code to set us in the right direction. – Steven B. Segletes Jun 25 '15 at 16:08
  • Welcome to TeX.SX! It is easier to help you if you add a minimal working example that takes the form \documentclass{...}\usepackage{....}\begin{document}...\end{document}. If possible, it should compile and have the minimum amount of code needed to illustrate your problem. This makes it much easier for people to help you - and much more likely that they will! – Andrew Jun 25 '15 at 16:10
  • 1
    Please give us a hint: where is newicktree? It does not seem to be on CTAN. – cfr Jun 25 '15 at 16:28
1

Maybe this helps a little:

\documentclass[12pt]{article}
\usepackage{newicktree}
\begin{document}
\begin{figure}[h!]
  \centering
  \begin{newicktree}
    \setunitlength{4cm} \nobranchlengths \nodelabelformat{}
    \contemporarytips[30] \drawtree{ (((A,B)X,C)Y,D)Z;}
  \end{newicktree}
  \caption{Example of phylogenetic tree.}
  \label{fig:phyltree}
\end{figure}
\begin{newicktree}
  \straightbranches\nobranchlengths\nonodemarkers
  \lefttree\setunitlength{2mm}
  \drawtree{(((thing 1:5, thing 10:5):3, thing 9:6):4, thing 2:7):8, ((thing 7:3, thing 8:3):10, thing 3:10):5,
  (thing 6:20, (thing 4:1, thing 5:2):10):1;}
\end{newicktree}

\end{document}

tree

  • Now the problem is to connect the tree with the right part. However, this is very helpful (it is a type of unrooted phylogenetic tree) :) – Antonio Panzetta Jun 25 '15 at 17:10

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.