Re: [graphviz-interest] Dendrograms/Cladograms
[email protected] Tue, 22 Dec 2015 10:41:27 +0100
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <20151222104127.Horde.6xLhdMFIkzEOI8eqR6kilQ1@webmail.stamm-wilbrandt.de> |
Hi, based on horizontal cladogram sample in [0] I came up with [1] and [2]. I found no way to enforce the vertical order in [1] and therefore the edges are bottom up compared to sample. While [2] gives ortho edges the result does not look nicely ... Please play with it, if you have something interesting you can just click on "Share" button and copy the generated URL from address bar for sharing. Hermann. [0] https://en.wikipedia.org/wiki/Cladogram [1] http://stamm-wilbrandt.de/GraphvizFiddle/?1450776920582#digraph%20G%20%7B%0A%20rankdir%3DLR%0A%20%7B%20node%20%5Bshape%3Dpoint%20label%3D%22%22%5D%20z%20a%20b%20c%20%7D%0A%20node%20%5Bshape%3Dnone%5D%0A%20A%20%5Blabel%3D%22beetles%22%5D%0A%20B%20%5Blabel%3D%22wasps%2C%20bees%2C%20ants%22%5D%0A%20C%20%5Blabel%3D%22butterflies%2C%20moths%22%5D%0A%20D%20%5Blabel%3D%22flies%22%5D%0A%20z%20-%3E%20a%0A%20a%20-%3E%20%7B%20A%20b%20%7D%0A%20b%20-%3E%20%7B%20B%20c%20%7D%0A%20c%20-%3E%20%7B%20C%20D%20%7D%0A%7D%0A [2] http://stamm-wilbrandt.de/GraphvizFiddle/1.0.1/?1450777102156#digraph%20G%20%7B%0A%20rankdir%3DLR%20splines%3Dortho%0A%20%7B%20node%20%5Bshape%3Dpoint%20label%3D%22%22%5D%20z%20a%20b%20c%20%7D%0A%20node%20%5Bshape%3Dnone%5D%0A%20A%20%5Blabel%3D%22beetles%22%5D%0A%20B%20%5Blabel%3D%22wasps%2C%20bees%2C%20ants%22%5D%0A%20C%20%5Blabel%3D%22butterflies%2C%20moths%22%5D%0A%20D%20%5Blabel%3D%22flies%22%5D%0A%20z%20-%3E%20a%0A%20a%20-%3E%20%7B%20A%20b%20%7D%0A%20b%20-%3E%20%7B%20B%20c%20%7D%0A%20c%20-%3E%20%7B%20C%20D%20%7D%0A%7D%0A Quoting Ron Savage <[email protected]>: > Hi > > There's a dendrogram/cladogram [1] half-way down this page: > http://phenomena.nationalgeographic.com/2015/12/11/paleo-profile-the-smoke-hill-bird/ > > Can dot do anything like that or do I need to write a wrapper > fabricating invisible nodes to generate the straight lines? > > Normally, I'd search your site, but it's off-line from my POV here > in Melbourne, Australia :-(. > > [1] https://en.wikipedia.org/wiki/Cladogram > > -- > Ron Savage - savage.net.au > _______________________________________________ > [email protected] > http://lists.research.att.com/mailman/listinfo/graphviz-interest _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest