Hi Ondřej,

You can add any kind of graph on top of a plot by typing this command:

par(new = TRUE)

See the examples in ?phydataplot on how this can be used. A simple example could be:

plot(1)
par(new = TRUE)
plot(rtree(5))

Best,

Emmanuel

Le 17/10/2014 12:48, Ondřej Mikula a écrit :
Dear list,
does any simple trick exist to add phylogenetic tree to an existing plot?
And if not, would it be complicated to build in an argument 'add' to
'plot.phylo' function (with the same effect as in many other plotting
functions)? I want to underlay my phylogeny with some metadata and with
such argument it would become as easy as to overlay it.
Best wishes,
Ondřej




_______________________________________________
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]/

Reply via email to