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
josep...@umich.edu <mailto:josep...@umich.edu>



On 8 Dec, 2015, at 07:46, Roger Close <roger.cl...@gmail.com
<mailto:roger.cl...@gmail.com>> 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 - R-sig-phylo@r-project.org
<mailto:R-sig-phylo@r-project.org>
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at
http://www.mail-archive.com/r-sig-phylo@r-project.org/



_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/


_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to