Discussion:
[R-sig-phylo] color edges of internal nodes with a single child
Walter, Mathias
2017-12-20 15:17:37 UTC
Permalink
Hi!

I tried using the edge.color parameter with a vector of colors of
plot.phylo on a tree having several internal single nodes (which have just
one child node). Unfortunately, it reports an error that A/B needs a value.
I tracked it down to the function phylogramm.plot which expects nodes
having at least two children.

Is there an easy solution for this, except using collapse.single?

--
Kind regards,
Mathias

[[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-***@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-***@r-project.org/
Emmanuel Paradis
2017-12-23 15:48:34 UTC
Permalink
Hi Walter,

That shouldn't be too hard to fix. This happens, apparenly, only if
type="phylogram" -- which is the default. This seems to work correctly
if type="c" (and if there are branch lengths).

I'll update you when it's fixed.

Best,

Emmanuel
Post by Walter, Mathias
Hi!
I tried using the edge.color parameter with a vector of colors of
plot.phylo on a tree having several internal single nodes (which have just
one child node). Unfortunately, it reports an error that A/B needs a value.
I tracked it down to the function phylogramm.plot which expects nodes
having at least two children.
Is there an easy solution for this, except using collapse.single?
--
Kind regards,
Mathias
[[alternative HTML version deleted]]
_______________________________________________
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
_______________________________________________
R-sig-phylo mailing list - R-sig-***@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo
Emmanuel Paradis
2017-12-24 00:32:48 UTC
Permalink
This is fixed in ape 5.0-3 just uploaded one ape's site:

http://ape-package.ird.fr/ape_installation.html#versions

If you don't want to (or cannot) re-install ape, you can get the file
plot.phylo.R from the source package and source() it into R -- not just
the function phylogramm.plot: because of the namespace it is better to
source plot.phylo() at the same time.

Best,

Emmanuel
Post by Emmanuel Paradis
Hi Walter,
That shouldn't be too hard to fix. This happens, apparenly, only if
type="phylogram" -- which is the default. This seems to work correctly
if type="c" (and if there are branch lengths).
I'll update you when it's fixed.
Best,
Emmanuel
Post by Walter, Mathias
Hi!
I tried using the edge.color parameter with a vector of colors of
plot.phylo on a tree having several internal single nodes (which have just
one child node). Unfortunately, it reports an error that A/B needs a value.
I tracked it down to the function phylogramm.plot which expects nodes
having at least two children.
Is there an easy solution for this, except using collapse.single?
--
Kind regards,
Mathias
    [[alternative HTML version deleted]]
_______________________________________________
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at
_______________________________________________
R-sig-phylo mailing list - R-sig-***@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-***@r-project
Loading...