[Phylobase-devl] phylo4: tabulate() requires nbins argument

Ben Bolker bolker at ufl.edu
Wed May 21 19:55:43 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

~  At the moment plot.phylo detects these "singleton nodes"
(as I call them) and asks the user to get rid of them ...
so I wouldn't feel bad about relaxing the rule now and
waiting for the plotting code to catch up.

~ if (any(tabulate(x$edge[, 1]) == 1))
~        stop("there are single (non-splitting) nodes in your tree; you
may need to use collapse.singles().")



Thibaut Jombart wrote:
| Hi people !
|>     ~  Now, I will admit that we do not currently prevent this; we should
|>     (1) decide whether we want to accept all of these rules for phylo4
|>     objects as well (I would like to eliminate rule b below, to
|>     allow "singleton" nodes); (2) add these rules to phylo4 object
|>     checking so that they can't happen.
|>
|>     ~  Thoughts, anyone?
|>
|>     ~  Ben
|>
| I agree we could relax rule b. I think we should get progressively
| independent from ape where it is useful. But maybe we should wait for
| the plot stuff to be recoded (I think this part includes most of the C
| code that phylobase calls from ape). We have seen how ugly it can get
| when we try to plot malformed phylo objects, and we cannot decently ask
| users not to plot there data until new methods are available.
|
| Cheers,
|
| Thibaut.
|>
|>     b· All nodes appear in the first column at least twice.
|>
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINGIZc5UpGjwzenMRAmKjAJ93oGJTBdongvgHX+h6RmFYOVFsKQCfTJm6
wIzdbsp8nj1Gxe4AkcmoPhQ=
=p/xh
-----END PGP SIGNATURE-----


More information about the Phylobase-devl mailing list