Dear Liam,
Thank you very much for your helpful reply. I can replicate your example,
but with my data, I get the boxplots assigned to the wrong species. I am
sure it is an ordering issue, but I am not sure where it goes wrong.
Your suggestions would help me please.The script, as well as the data
Thanks Emmanuel. This did the trick. I greatly appreciate your help.
Best,
Martin
On 15 July 2015 at 18:42, Emmanuel Paradis emmanuel.para...@ird.fr wrote:
Martin,
I have fixed the code. In fact, phydataplot() plots the tree and the data
in the same plotting region so both share the same
Dear Emmanuel,
I have managed to tweak the Liam's code by ordering the variables in the
below described manner (example 1), but I am failing to reproduce the plot
with the use of the new phydataplot() (example 2):
example 1 (same data as in my previous message)
Hi Liam,
Thanks a lot. Your fix works perfectly and is definitely quicker than mine.
Best,
Martin
On 15 July 2015 at 16:45, Liam J. Revell liam.rev...@umb.edu wrote:
Hi Martin.
Turns out the tip labels in your tree were not being plotted in the order
of tree$tip.label. To fix, I used the
Hi Martin.
Turns out the tip labels in your tree were not being plotted in the
order of tree$tip.label. To fix, I used the following hack:
tree-read.tree(text=write.tree(tree))
then the code as before. I have attached the result which seems to be
correct.
Hopefully this resolves the
Dear list members,
I wonder whether anyone of you has a code for phyldataplot (or any other
plotting function) that allows for plotting the distributions of variable
(e.g., boxplots) next to the phylogeny giving something like:
Hi Martin.
The easiest way to do this is to create two side-by-side plots using
par(mfcol=c(1,2)) and then put your tree your boxplot in the two
plots; however one has to be very careful in that case to ensure that
the tips align to the correct boxes. I posted a demo of this to my blog.
Let