1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
---|
2 | <HTML> |
---|
3 | <HEAD> |
---|
4 | <TITLE>drawgram</TITLE> |
---|
5 | <META NAME="description" CONTENT="drawgram"> |
---|
6 | <META NAME="keywords" CONTENT="drawgram"> |
---|
7 | <META NAME="resource-type" CONTENT="document"> |
---|
8 | <META NAME="distribution" CONTENT="global"> |
---|
9 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> |
---|
10 | </HEAD> |
---|
11 | <BODY BGCOLOR="#ccffff"> |
---|
12 | <DIV ALIGN=RIGHT> |
---|
13 | version 3.6 |
---|
14 | </DIV> |
---|
15 | <P> |
---|
16 | <DIV ALIGN=CENTER> |
---|
17 | <H1>DRAWGRAM</H1> |
---|
18 | </DIV> |
---|
19 | <P> |
---|
20 | © Copyright 1990-2002 by The University of |
---|
21 | Washington. Written by Joseph Felsenstein. Permission is granted to copy |
---|
22 | this document provided that no fee is charged for it and that this copyright |
---|
23 | notice is not removed. |
---|
24 | <P> |
---|
25 | DRAWGRAM interactively plots a cladogram- or phenogram-like rooted tree |
---|
26 | diagram, with many options including orientation of tree and branches, |
---|
27 | style of tree, label sizes and angles, tree depth, margin sizes, stem |
---|
28 | lengths, and placement of nodes in the tree. Particularly if you can |
---|
29 | use your computer to preview the plot, you can very |
---|
30 | effectively adjust the details of the plotting to get just the kind of |
---|
31 | plot you want. |
---|
32 | <P> |
---|
33 | To understand the working of DRAWGRAM and DRAWTREE, you should first |
---|
34 | read the <A HREF="draw.html">Tree Drawing Programs web page</A> |
---|
35 | in this documentation. |
---|
36 | <P> |
---|
37 | As with DRAWTREE, to run DRAWGRAM you need a compiled copy of the |
---|
38 | program, a font file, and a tree file. The tree file has a default name |
---|
39 | of <TT>intree</TT>. The font file has a default name of "fontfile". If there is |
---|
40 | no file of that name, the program will ask you for the name of a font file |
---|
41 | (we provide ones that have the names <TT>font1</TT> through <TT>font6</TT>). |
---|
42 | Once you decide on a favorite one of these, you could make a copy of it |
---|
43 | and call it <TT>fontfile</TT>, and it will then be used by default. |
---|
44 | Note that the program will get confused if the input tree file has the number |
---|
45 | of trees on the first line of the file, so that numbr may have to be removed. |
---|
46 | <P> |
---|
47 | Once these choices have been made you will see the central menu of the |
---|
48 | program, which looks like this: |
---|
49 | <P> |
---|
50 | <TABLE><TR><TD BGCOLOR=white> |
---|
51 | <PRE> |
---|
52 | |
---|
53 | Rooted tree plotting program version 3.6a3 |
---|
54 | |
---|
55 | Here are the settings: |
---|
56 | 0 Screen type (IBM PC, ANSI): (none) |
---|
57 | P Final plotting device: Postscript printer |
---|
58 | V Previewing device: X Windows display |
---|
59 | H Tree grows: Horizontally |
---|
60 | S Tree style: Phenogram |
---|
61 | B Use branch lengths: Yes |
---|
62 | L Angle of labels: 90.0 |
---|
63 | R Scale of branch length: Automatically rescaled |
---|
64 | D Depth/Breadth of tree: 0.53 |
---|
65 | T Stem-length/tree-depth: 0.05 |
---|
66 | C Character ht / tip space: 0.3333 |
---|
67 | A Ancestral nodes: Weighted |
---|
68 | F Font: Times-Roman |
---|
69 | M Horizontal margins: 1.65 cm |
---|
70 | M Vertical margins: 2.16 cm |
---|
71 | # Pages per tree: one page per tree |
---|
72 | |
---|
73 | Y to accept these or type the letter for one to change |
---|
74 | </PRE> |
---|
75 | </TD></TR></TABLE> |
---|
76 | <P> |
---|
77 | These are the settings that control the appearance of the tree, which |
---|
78 | has already been read in. You can either accept these as is, in which |
---|
79 | case you would answer Y to the question and press the Return or Enter |
---|
80 | key, or you can answer N if you want to change one, or simply type the |
---|
81 | character corresponding to the one you want to change (if you answer N it |
---|
82 | will just immediately ask you for that number anyway). |
---|
83 | <P> |
---|
84 | For a first run, particularly if previewing is available, you might accept |
---|
85 | these default values and see what the result looks like. The program |
---|
86 | will then tell you it is about to preview the tree and ask you to press |
---|
87 | Return or Enter when you are ready to see this (you will probably have |
---|
88 | to press it twice). If you are on a Windows system (and have its graphics |
---|
89 | selected as your previewing option), on a Unix or Linux system and are |
---|
90 | using X windows for previewing, or are on a Macintosh system, a new |
---|
91 | window will open with the preview in it. If you are using the Tektronix |
---|
92 | preview option the preview will appear in the window where the menu was. |
---|
93 | <P> |
---|
94 | On X Windows, Macintosh, and Windows you can resize the preview window, |
---|
95 | though for some of these you may have to ask the system to redraw the |
---|
96 | preview to see it at the new window size. |
---|
97 | <P> |
---|
98 | Once you are finished looking at the preview, you will want to |
---|
99 | specify whether the program should make the final plot or change some of |
---|
100 | the settings. This is done differently on the different previews: |
---|
101 | <P> |
---|
102 | <UL> |
---|
103 | <LI>In <B>X Windows</B> you should make the menu window the active |
---|
104 | window. You may need to move the mouse over it, or click in it, or |
---|
105 | click on its top bar. You do not need to try to close the preview |
---|
106 | window yourself, and usually if you do this will cause trouble. |
---|
107 | <LI>In <B>Windows</B> use the <TT>File</TT> menu in the preview window |
---|
108 | and choose either the <TT>Change Parameters</TT> menu item, or if |
---|
109 | you are ready to make the final plot, choose the <TT>Plot</TT> menu item. |
---|
110 | <LI>On a <B>Macintosh</B> system, you can simply use the little box in |
---|
111 | the corner of the preview window to close it. The text window for the |
---|
112 | menu will then be active. |
---|
113 | <LI>In <B>PC graphics</B> press on the Enter key. The screen with the |
---|
114 | preview should disappear and the settings menu reappear. |
---|
115 | <LI>With a <B>Tektronix</B> preview, you may need to change your screen |
---|
116 | from a Tektronix-compatible mode to see the menu again. |
---|
117 | </UL> |
---|
118 | <P> |
---|
119 | Except with the Macintosh preview, the program will |
---|
120 | now ask you if the tree is now ready to be plotted. If you answer Y (for |
---|
121 | Yes) (or choose this option in the <TT>File</TT> menu of the preview |
---|
122 | window in the case of Windows) the program will usually write a plot file |
---|
123 | (with some plot options it will draw the tree on the screen). Then it will |
---|
124 | terminate. |
---|
125 | <P> |
---|
126 | But if you do not say that you are ready to plot the tree, |
---|
127 | it will go back to the above menu, allow |
---|
128 | you to change more options, and go through the whole process again. The |
---|
129 | easiest way to learn the meaning of the options is to try them, |
---|
130 | particularly if previewing is available. Below I will describe them one |
---|
131 | by one; you may prefer to skip reading this unless you are puzzled about |
---|
132 | one of them. |
---|
133 | <P> |
---|
134 | <H2>THE OPTIONS</H2> |
---|
135 | <P> |
---|
136 | <DL COMPACT> |
---|
137 | <DT>O</DT> <DD>This is an option that allows you to change the menu window |
---|
138 | to be an ANSI terminal or an IBM PC terminal. Generally you will not |
---|
139 | want to change this.</DD> |
---|
140 | <P> |
---|
141 | <DT>P</DT> <DD>This allows you to choose the Plotting device or file |
---|
142 | format. We have discussed the possible choices in the |
---|
143 | <A HREF="draw.html">draw programs documentation web page</A>.</DD> |
---|
144 | <P> |
---|
145 | <DT>V</DT> <DD>This allows you to change the type of preView window (or |
---|
146 | even turn off previewing. We have discussed the different possible |
---|
147 | choices in the <A HREF="draw.html">draw programs documentation web page</A>.</DD> |
---|
148 | <P> |
---|
149 | <DT>H</DT> <DD>Whether the tree grows Horizontally or |
---|
150 | vertically. The horizontal growth will be from left to right. This |
---|
151 | option is self explanatory. The other options are designed so that when |
---|
152 | we switch this direction of growth the tree still looks the same, except |
---|
153 | for orientation and overall size. This option is toggled, that is, |
---|
154 | when it is chosen the orientation changes, going back and forth between |
---|
155 | Vertical and Horizontal. The default orientation is Horizontal.</DD> |
---|
156 | <P> |
---|
157 | <DT>S</DT> <DD>The Style of the tree. There are six |
---|
158 | styles possible: Cladogram, Phenogram, Curvogram, Eurogram, Swoopogram, |
---|
159 | and Circular Tree. These are chosen by the letters C, P, V, E, S and O. |
---|
160 | These take a little explaining. |
---|
161 | <P> |
---|
162 | In spite of the words "cladogram" and "phenogram", there is no |
---|
163 | implication of the extent to which you consider these diagrams as being |
---|
164 | genealogies or phenetic clustering diagrams. The names refer to pictorial |
---|
165 | style, not your own intended final use for the diagram. The six styles |
---|
166 | can be described as follows (assuming a vertically growing tree): |
---|
167 | <P> |
---|
168 | <DL> |
---|
169 | <DT>Cladogram</DT> <DD>nodes are connected to other nodes and to tips by straight |
---|
170 | lines going directly from one to the other. This gives a V-shaped |
---|
171 | appearance. The default settings if there are no branch lengths are |
---|
172 | designed to yield a V-shaped tree with a 90-degree angle at the base.</DD> |
---|
173 | <P> |
---|
174 | <DT>Phenogram</DT> <DD>nodes are connected to other nodes and to other tips by |
---|
175 | a horizontal and then a vertical line. This gives a particularly |
---|
176 | precise idea of horizontal levels.</DD> |
---|
177 | <P> |
---|
178 | <DT>Curvogram</DT> <DD>nodes are connected to other nodes and to tips by a curve |
---|
179 | which is one fourth of an ellipse, starting out horizontally and then |
---|
180 | curving upwards to become vertical. This pattern was suggested by |
---|
181 | Joan Rudd.</DD> |
---|
182 | <P> |
---|
183 | <DT>Eurogram</DT> <DD>so-called because it is a version of cladogram diagram |
---|
184 | popular in Europe. Nodes are |
---|
185 | connected to other nodes and to tips by a diagonal line that goes outwards |
---|
186 | and goes at most one-third of the way up to the next node, then turns |
---|
187 | sharply straight upwards and is vertical. Unfortunately it is nearly |
---|
188 | impossible to guarantee, when branch lengths are used, that the angles |
---|
189 | of divergence of lines are the same.</DD> |
---|
190 | <P> |
---|
191 | <DT>Swoopogram</DT> <DD>this option connects two nodes |
---|
192 | or a node and a tip using two curves that are actually each one-quarter |
---|
193 | of an ellipse. The first part starts out vertical and then bends over |
---|
194 | to become horizontal. The second part, which is at least two-thirds |
---|
195 | of the total, starts out horizontal and then bends up to become |
---|
196 | vertical. The effect is that two lineages split apart gradually, then |
---|
197 | more rapidly, then both turn upwards.</DD> |
---|
198 | <P> |
---|
199 | <DT>Circular Tree</DT> <DD>This is a style introduced by David Swofford |
---|
200 | in PAUP*. The tree grows outward from a central point, being essentially |
---|
201 | a Phenogram style tree in polar coordinates. The tips form a 360-degree |
---|
202 | circle. The "vertical" lines run outward radially from the center, and the |
---|
203 | "horizontal" lines are arcs of circles centered on it.</DD> |
---|
204 | </DL> |
---|
205 | <P> |
---|
206 | You should experiment with these and decide which you want -- it depends |
---|
207 | very much on the effect you want.</DD> |
---|
208 | <P> |
---|
209 | <DT>B</DT> <DD>Whether the tree has Branch lengths that are |
---|
210 | being used in the diagram. If the tree that was read in had a full set |
---|
211 | of branch lengths, it will be assumed as a default that you want to use |
---|
212 | them in the diagram, but you can specify that they are not to be used. If |
---|
213 | the tree does not have a full set of branch lengths then this will |
---|
214 | be indicated, and if you try to use branch lengths the program will |
---|
215 | refuse to allow you to do so. Note that when you change option B, the node |
---|
216 | position option A may change as well.</DD> |
---|
217 | <P> |
---|
218 | <DT>L</DT> <DD>The angle of the Labels. The angle is always |
---|
219 | calculated relative to a vertical tree; whether the tree is horizontal |
---|
220 | or vertical, if the labels are at an angle of 90 degrees they run |
---|
221 | parallel to direction of tree growth. The default value is 90 |
---|
222 | degrees. The option allows you to choose any angle from 0 to 90 degrees.</DD> |
---|
223 | <P> |
---|
224 | <DT>R</DT> <DD>How the branch lengths will be translated |
---|
225 | into distances on the output device. Note that when branch lengths |
---|
226 | have not been provided, there are implicit branch lengths specified |
---|
227 | by the type of tree being drawn. This |
---|
228 | option will toggle back and forth between automatic |
---|
229 | adjustment of branch lengths so that the diagram will just fit into the |
---|
230 | margins, and you specifying how many centimeters there will be per unit |
---|
231 | branch length. This is included so that you can plot different trees |
---|
232 | to a common scale, showing which ones have longer or shorter branches than |
---|
233 | others. Note that if you choose too large a value for centimeters per |
---|
234 | unit branch length, the tree will be so big it will overrun the plotting |
---|
235 | area and may cause failure of the diagram to display properly. Too small |
---|
236 | a value will cause the tree to be a nearly invisible dot.</DD> |
---|
237 | <P> |
---|
238 | <DT>D</DT> <DD>The ratio between the Depth and the |
---|
239 | breadth of the tree. It is initially set near 0.5, to approximate a |
---|
240 | V-shaped tree, but you may want to try a larger value to get a longer |
---|
241 | and narrower tree. Depth and breadth are described as if the tree grew |
---|
242 | vertically, so that depth is always measured from the root to the tips |
---|
243 | (not including the length of the labels).</DD> |
---|
244 | <P> |
---|
245 | <DT>T</DT> <DD>The length of the sTem of the tree |
---|
246 | as a fraction of the depth of the tree. You may want to either lengthen |
---|
247 | the stem or remove it entirely by giving a value of zero.</DD> |
---|
248 | <P> |
---|
249 | <DT>C</DT> <DD>The Character height, measured as a fraction |
---|
250 | of the tip spacing. If the labels are rotated to a shallow |
---|
251 | angle, the character height will be automatically adjusted in hopes of |
---|
252 | avoiding collision of labels at different tips. This option allows you |
---|
253 | to change the size of the labels yourself. On output devices where |
---|
254 | line thicknesses can be varied, the thickness of the tree lines will |
---|
255 | automatically be adjusted to be proportional to the character height, |
---|
256 | which is an additional reason you may want to change character height.</DD> |
---|
257 | <P> |
---|
258 | <DT>A</DT> <DD>Controls the |
---|
259 | positions of the Ancestral (interior) nodes. This can greatly affect the |
---|
260 | appearance of the tree. The vertical positions (these descriptions assume a |
---|
261 | a tree growing vertically) are not under your control except insofar as you |
---|
262 | specify the use or non-use of branch lengths. If you choose to change |
---|
263 | this option you will see the menu: |
---|
264 | <P> |
---|
265 | <TABLE><TR><TD BGCOLOR=white> |
---|
266 | <PRE> |
---|
267 | Should interior node positions: |
---|
268 | be Intermediate between their immediate descendants, |
---|
269 | Weighted average of tip positions |
---|
270 | Centered among their ultimate descendants |
---|
271 | iNnermost of immediate descendants |
---|
272 | or so that tree is V-shaped |
---|
273 | (type I, W, C, N or V): |
---|
274 | </PRE> |
---|
275 | </TD></TR></TABLE> |
---|
276 | <P> |
---|
277 | The five methods (Intermediate, Weighted, Centered, Innermost, and |
---|
278 | V-shaped) are different horizontal positionings of the interior nodes. |
---|
279 | It will be helpful to you to try these out and see which you like best. |
---|
280 | Intermediate places the node halfway between its immediate descendants |
---|
281 | (horizontally), Weighted places it closer to that descendant who is |
---|
282 | closer vertically as well, and Centered centers the node below the |
---|
283 | horizontal positions of the tips that are descended from that node. You |
---|
284 | may want to choose that option that prevents lines from crossing each |
---|
285 | other. |
---|
286 | <P> |
---|
287 | V-shaped is another option, one designed, if there are no branch lengths |
---|
288 | being used, to yield a v-shaped tree of regular appearance. With branch |
---|
289 | lengths it will not necessarily do so. "Innermost" is the most unusual |
---|
290 | option: it chooses a center for the tree, and always places interior |
---|
291 | nodes below the innermost of their immediate descendants. This leads |
---|
292 | to a tree that has vertical lines in the center, like a tree with a |
---|
293 | trunk. |
---|
294 | <P> |
---|
295 | If the tree you are plotting has a full set of lengths, then when it is |
---|
296 | read in the node position option is automatically set to "intermediate", |
---|
297 | which is the setting with the least likelihood of lines in the tree |
---|
298 | crossing. If it does not have lengths the option is set to "V-shaped". |
---|
299 | If you change option B which tells the program whether to try to use |
---|
300 | the branch lengths, then the node position option will automatically be |
---|
301 | reset to the appropriate one of these defaults. This may be confusing |
---|
302 | if you do not realise that it is happening.</DD> |
---|
303 | <P> |
---|
304 | <DT>F</DT> <DD>Allows you to select the |
---|
305 | name of the Font that you will use for the species names. This is |
---|
306 | allowed for some of the plotter drivers (this menu item does not |
---|
307 | appear for the others). You can |
---|
308 | select the name of any font that is available for your plotter, for |
---|
309 | example "Courier-Bold" or "Helvetica". The label will then be |
---|
310 | printed using that font rather than being drawn line-by-line as it |
---|
311 | is in the default Hershey font. In the preview of the tree, the |
---|
312 | Hershey font is always used (which means that it may look different from |
---|
313 | the final font). The size of the characters in the species names is |
---|
314 | scaled according to the label heights you have selected in the menu, |
---|
315 | whether plotter fonts or the Hershey font are used. Note that for some |
---|
316 | plotter drivers (particular Xfig and PICT) fonts can be used only if the |
---|
317 | species labels are horizontal or vertical (at angles of 0 degrees or |
---|
318 | 90 degrees).</DD> |
---|
319 | <P> |
---|
320 | <DT>M</DT> <DD>The horizontal and vertical Margins in |
---|
321 | centimeters. You can enter new margins (you must enter new values for |
---|
322 | both horizontal and vertical margins, though these need not be different |
---|
323 | from the old values). For the moment I do not allow you to specify left |
---|
324 | and right margins separately, or top and bottom margins separately. In |
---|
325 | a future release I hope to do so.</DD> |
---|
326 | <P> |
---|
327 | <DT>#</DT> <DD>The number of pages per tree. Defaults to one, but if |
---|
328 | you need a physically large tree you may want to choose a larger |
---|
329 | number. For example, to make a big tree for a poster, choose a larger |
---|
330 | number of pages horizontally and vertically (the program will ask you |
---|
331 | for these numbers), get out your scissors and paste or tape, and |
---|
332 | go to work.</DD> |
---|
333 | </DL> |
---|
334 | <P> |
---|
335 | I recommend that you try all of these options (particularly if you can |
---|
336 | preview the trees). It is of particular use to try combinations of the |
---|
337 | style of tree (option S) with the different methods of placing |
---|
338 | interior nodes (option A). You will find that a wide variety of |
---|
339 | effects can be achieved. |
---|
340 | <P> |
---|
341 | I would appreciate suggestions for improvements in DRAWGRAM, but please |
---|
342 | be aware that the source code is already very large and I may not be |
---|
343 | able to implement all suggestions. |
---|
344 | </BODY> |
---|
345 | </HTML> |
---|