Hi Jo & Roger,
edgelabels() has the option 'date' which helps to annotate the branches
of a tree:
set.seed(1)
tx <- rcoal(3)
plot(tx)
axisPhylo()
edgelabels(edge = 1, date = 1, pch = 19, col = "red")
Best,
Emmanuel
Le 08/12/2015 16:32, Joseph Brown a écrit :
Roger,
Are you looking for something like this?
It is just a matter of finding the coordinates on the last plot:
lastPP<- get("last_plot.phylo", envir=.PlotPhyloEnv);
and laying down points where you want them.
If this is along the lines of what you want, I can make the code a bit
more general and send it along.
JWB.
________________________________________
Joseph W. Brown
Post-doctoral Researcher, Smith Laboratory
University of Michigan
Department of Ecology & Evolutionary Biology
Room 2071, Kraus Natural Sciences Building
Ann Arbor MI 48109-1079
[email protected] <mailto:[email protected]>
On 8 Dec, 2015, at 07:46, Roger Close <[email protected]
<mailto:[email protected]>> wrote:
Hi all,
Does anyone know of a way to plot sampled-ancestor trees in R such that
ancestors lie on branches, rather than being zero-length terminals that
follow a bifurcation?
Many thanks,
Roger
---
Roger Close, Postdoctoral Research Associate
Department of Earth Sciences, Oxford University
South Parks Road
Oxford OX1 3AN
United Kingdom
[[alternative HTML version deleted]]
_______________________________________________
R-sig-phylo mailing list - [email protected]
<mailto:[email protected]>
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at
http://www.mail-archive.com/[email protected]/
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/