Re: [R-sig-phylo] Truncate x-axis in phydataplot barplots

2016-10-17 Thread Liam J. Revell
Just to follow up on this, here is an example using plotTree.barplot with xlim set using args.barplot: http://blog.phytools.org/2016/07/more-on-showing-barplot-next-to-plotted.html. All the best, Liam Liam J. Revell, Associate Professor of Biology University of Massachusetts Boston web:

[R-sig-phylo] Truncate x-axis in phydataplot barplots

2016-10-17 Thread Marian Schubert
Hey APE users, I was wondering if there is a possibility to limit the dimensions of the x-axis for barplots created with phydataplot(). With other words, in barplot() I have the option to set xlim, how can I achieve the equivalent in phydataplot()? Cheers and thanks in advance! marian

Re: [R-sig-phylo] Truncate x-axis in phydataplot barplots

2016-10-17 Thread Liam Revell
Hi Marian. You should be able to do it with the phytools function plotTree.barplot using the argument args.barplot, supplied as a list containing the arguments you want to pass to barplot. Not sure if this is on CRAN yet so you might have to install from GitHub. Let me know if you need

Re: [R-sig-phylo] Truncate x-axis in phydataplot barplots

2016-10-17 Thread Emmanuel Paradis
Hi Marian, You can limit the space available to the whole figure when plotting the tree (this is when the size of the plot is fixed). For example, tr <- rcoal(10) x <- 1:10 plot(tr, x.lim = 5) phydataplot(x, tr) This is equivalent to playing with xlim and/or ylim in barplot(). You can also