at tips internal nodes it will not account for multiple
changes along a single edge. Where do your states at internal nodes come
from?
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev
plotters such as plot.phylo or plotSimmap.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 3/5/2015 5:19 AM, Jonas Eberle wrote
not aware of one in R at
this time.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 3/1/2015 10:31 PM, Andrea Berardi wrote:
Hi all,
I'm just
that to analyze them obtain
'standardized coefficients' you will still need to analyze them
phylogenetically, such as:
library(nlme)
w-diag(obj$C)
fit-gls(y~x,data=as.data.frame(Xt),correlation=corBrownian(1,tree),
weights=varFixed(~w))
Or something like that.
All the best, Liam
Liam J. Revell
contrasts.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 4/13/2015 1:13 PM, Sergio Ferreira Cardoso wrote:
Hello,
Thank you both for the help
data are in a matrix. You can do something like
x-X[,1] or (as may be the case for your data) seems names are in column
1 of your matrix, x-setNames(X[,2],X[,1]).
All the best,
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
Hi Nick.
I'm not sure if this is what you mean, but have you tried the function
ladderize from the ape package?
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http
.
Note that as this is an unpublished method it has not survived the
rigors of peer review and thus should be treated cautiously.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
the
color scheme from the default. For multistate data, you can also use the
function mergeMappedStates on the stochastically-mapped trees to merge
states into (for instance) 'a' 'not-a'.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http
something wrong.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 4/13/2015 2:20 PM, Liam J. Revell wrote:
I wouldn't go as far as to call
-of-residuals.html.
Let us know if this is helpful.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 4/18/2015 1:15 PM, Sergio Ferreira Cardoso
-closest-set-of-node-rotations.html.
Let us know if this seems to do what you are attempting.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 4/8
hesitate to email me if you have any questions.
All the best, Liam
--
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
___
R
Hi Anand.
Have you tried eliminating spaces line breaks from your Newick string.
When I do that I am able to read the tree with read.newick with no problem.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
, as 'size corrected' trait values); however you
need to remember that they are still phylogenetically correlated. I hope
that's clear enough.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email
Hi Sergio.
You didn't specify what BM vf are, but if:
BM-corBrownian(1,phy)
## and
vf-diag(vcv(phy))
then, yes, this is correct. There is a function in phytools, phy.resid,
that also does this calculation.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University
will end up with an extra
node! I am working on fixing this for rerootingMethod.
Hopefully this is helpful. All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http
- but we will
have observed only a subset of the four nucleotides at that site.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 6/17/2015 1:46
for phytools.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 6/17/2015 3:06 PM, David Bapst wrote:
Liam,
Ah, I see, rerootingMethod(), unlike
(other than zero). With make.simmap it is possible to fix Q at
some arbitrary (valid) value. It will even give you the likelihood for
that value, if I remember correctly.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http
equally to phylogenetic regression.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 6/17/2015 12:40 PM, Sergio Ferreira Cardoso wrote:
Hello
Hi David.
I'm not sure about this, but changing to:
tree-read.newick(text=write.tree(tree))
tree-collapse.singles(tree)
may work. I believe that write.tree will write trees with singletons
read.newick in phytools should be able to read them.
All the best, Liam
Liam J. Revell, Assistant
, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 7/3/2015 8:19 AM, Rubén Torices Blanco wrote:
Dear list members,
I am trying to explore evolutionary
.
If this is not the case you could try the following, in which node is
the node number you want to attach the tip to:
depth-max(nodeHeights(tree))-nodeheight(tree,node)
tree-bind.tip(tree,tip.label,where=node,edge.length=depth)
Let us know if this works.
All the best, Lia
Liam J. Revell, Assistant Professor
if this is helpful. All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 5/19/2015 2:27 PM, Marina Strelin wrote:
Hi!
I'm trying to use the map.overlap
in phytools or the faster midpoint in phangorn, which do midpoint
rooting and will usually result in a bifurcation at the root of the tree.
I hope this is of help.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
or at some point in the past, then this is
the way to do that.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 8/1/2015 4:12 AM, Eric wrote:
Hi
.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 7/31/2015 10:57 AM, Emmanuel Paradis wrote:
Hi Eric,
See the function rTraitCont in ape
me know if this is helpful.
http://blog.phytools.org/2015/07/plotting-tree-with-adjacent-boxplot.html
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http
the issue.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 7/15/2015 8:02 AM, Martin Bulla wrote:
Dear Liam,
Thank you very much for your helpful
-string.html
and it is about twice as fast as reading the tree into memory using
read.tree, setting the node labels to NULL, and then re-writing the tree
using write.tree.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
it might be reasonable to be wary of this - and perhaps
consider multiple methods of time-scaling (e.g., estimate using a
relaxed clock method, etc.).
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email:
on the terminal edge leading to each genus.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 10/27/2015 7:06 PM, Karla Shikev wrote:
Dear
Hi Xinxin.
In the current CRAN version of geiger treeTransform is not a valid
argument of fitDiscrete, instead you probably want to do:
fit<-fitDiscrete(tree,trait,transform="lambda")
Then the fitted value of lambda will be:
fit$opt$lambda
All the best, Liam
Liam J. Reve
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 11/12/2015 11:36 PM, Graeme Lloyd wrote:
Hello All,
I was wondering if anyone can help.
This now should be fixed on GitHub. Use:
devtools::install_github("liamrevell/phytools")
to install.
Thanks for pointing this out & let me know if you encounter any issues.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Bo
ols from
GitHub which can be done using the devtools package:
library(devtools)
install_github("liamrevell/phytools")
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 11/4/2015 5:44 AM, Arbuckle, Kevin wrote:
Hi folks,
I am currently trying to estimate ancestral states
the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 11/6/2015 10:38 PM, Todd Oakley wrote:
Richard,
Check out time tree Stochastic Character Mapping
sition=
runif(n=1)*tree$edge.length[which(tree$edge[,2]==node)])
and iterate it over the tips you want to add.
- Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytoo
Hi Jacob.
Can I add the somewhat boring & probably obvious comment that under the
neutral theory of molecular evolution the substitution rate is
independent of the effective population size?
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Bo
/scale-bar-for-cophylo-plotting.html.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 10/6/2015 10:40 AM, Julie Lee-Yaw wrote:
Dear all
n
the effects of different variables - but this will be true for all
statistical models. (Imagine the worst case in which variables A & B
were perfectly collinear, well then it becomes theoretically impossible
to determine if A is affecting Z or B, no matter what we do.)
All the best, Li
; or in circular
(fan) phylogram format. There is also a function to add a legend
(add.simmap.legend) and many other helper functions for this modified
phylo object class (drop.tip.simmap, reorderSimmap, ladderize.simmap,
etc.).
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University
of freedom would be required to account
for this uncertainty.
I hope these comments are helpful.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
Hi Glenn.
The phytools function fastBM does Brownian motion simulation with
bounds. It is pretty straightforward to figure out, but let me know if
you have difficult with the details.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web
n't given this too much thought), would be to put a
strong prior on the root to be 0 and the transition 0->1 to be low (but
non-zero) using stochastic mapping.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.
-birth
tree plus one).
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 10/3/2015 2:53 PM, Jonathan Greenberg wrote:
Thanks! Liam, what would
.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 11/27/2015 6:27 AM, Fabian Roger wrote:
hej
I read a tree which labels contain underscores
tant-ape-function.html.
Sorry about this Emmanuel!
All the best, Liam
--
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools
Thank you William. I was just about to comment the same. It is also
possible that a fresh install from GitHub will correctly install Biostrings:
library(devtools)
install_github("liamrevell/phytools")
All the best, Liam
Liam J. Revell, Associate Professor of Biology
densiTree (I believe) in phangorn.
If you want to use plotSimmap, you can just substitute plotSimmap and
use a named vector of colors - however you should still generate the
colors with transparency using rgb.
Let us know if this is what you had in mind.
All the best, Liam
Liam J. Revell, As
A","B")))
obj ## data frame
aggregate(obj$number,by=list(obj$tree),sum)
- Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 5/30/2016 12:13 PM, John
oks right.
Changing your font size will also help & may be necessary to get a good
visualization if the tip labels are really long.
Let us know if that works.
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.r
Hi Chris.
There is a function in phytools to do this. You can find out more by
searching my blog:
http://blog.phytools.org/search?q=cophylo
Let me know if you have any questions.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http
.
-
--
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
___
R-sig-phylo mailing list - R-sig-phylo@r-project.org
package.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 4/8/2016 5:50 PM, Joe Felsenstein wrote:
Sean --
... or, if you want to do it *really
wick in phytools, but not for read.tree - but this
may not be true of earlier versions of ape.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On
It looks like the NEXUS file might be badly conformed.
You could try:
obj<-scan(file="TimetreeOfLife2015.tre",n=1,skip=2,what="character")
tree<-read.tree(text=obj)
That seemed to work for me.
- Liam
Liam J. Revell, Associate Professor of Biology
University of Mass
.
Let us know if it seems to work (or, conversely, if you encounter issues).
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 5/18/2016 1:35
state
for all simulations, to pick it randomly from a vector of possible
states, or to pick it randomly with probabilities specified by the user.
Let me know if you have any questions. All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web
e states
manually afterwards)
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 5/11/2016 1:37 PM, Michael Foisy wrote:
P.S. -- I should add that I
ample
points(obj$xx[anc],obj$yy[anc],pch=19)
This works for all different tree types in plot.phylo, plotTree, and
plot.simmap, and also for plotted phylomorphospaces (using
phytools::phylomorphospace), traitgrams (using phytools::phenogram), and
contMap or densityMap still graphs.
All the be
l the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 5/3/2016 8:00 PM, Michael Foisy wrote:
Hello,
Quick question. I'm interested in whether th
-led by Drs. Klaus Schliep & April Wright, and
supported by a grant from the National Science Foundation.
All the best,
--
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
bl
t;0.
We can also get the positions of the tips in the coordinates of our
plotting device as follows:
obj<-get("last_plot.phylo",envir=.PlotPhyloEnv)
x<-obj$xx[1:obj$Ntip]
y<-obj$yy[1:obj$Ntip]
You can then use these coordinates to plot your labels any way you choose!
-
then be your input for OUwie or other model-fitting methods
that take species mean standard errors.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 8
sample sizes may have very poorly estimated variances.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 8/16/2016 10:46 PM, Santiago Claramunt
)
d<-sapply(assemblages,function(sp,D) mean(as.dist(D[sp,sp])),D=D)
Does that work?
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 2/2/2017 3
s o en español y deben ser enviadas por
email a cord...@phytools.org antes del 1 abril de 2017. Preguntas
adicionales pueden ser dirigidas al Dr. Liam Revell
(liam.rev...@umb.edu) o a la Dra. Marina Strelin
(marina.streli...@gmail.com).
--
Liam J. Revell, Associate Professor of Biology
Univ
be able to use the method="plotSimmap" and colors
arguments to color each subclade differently with plotTree.wBars.
If you need a function to find the common ancestor (parent node) of each
subclade, you can use the function ape::getMRCA or phytools::findMRCA.
Let me know if you need more he
take
into account within-species sampling error, though this is not precisely
what you have here (you do not know how uncertain each measure is, nor
how uncertain are your estimates for other species), nor is this
implemented in R.
All the best, Liam
Liam J. Revell, Associate Professor of Bio
you can use this to double-check your code. You should be able to
just take the value from this function, and divide it's square-root by a
vector consisting of the square-roots of the sample sizes of each
species to get your (pooled) species-specific standard errors.
All the best, Liam
Liam J. Revel
.ultrametric(tree) ## should pass
Let us know if this works. All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 8/16/2016 6:41 AM, Martin Dohrmann w
Hi Kevin.
I was thinking the same thing & this is already in phytools on GitHub:
http://blog.phytools.org/2017/02/function-to-add-error-bars-to-contmap.html.
Thanks for the suggestion.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
Hi Kevin.
I now show one way to do this here:
http://blog.phytools.org/2017/02/more-on-adding-error-bars-to-contmap.html.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
Hi Dave.
Yes. It is not perfect, but I have shown how to do this here:
http://blog.phytools.org/2017/02/more-on-adding-error-bars-to-contmap.html.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell
ot;,fsize=0.8)
dev.off()
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 8/31/2016 8:03 AM, Brian O'Meara wrote:
A similar solution is to c
Hi Lei.
It looks like you have something peculiar going on with your tree or
data. If you share it then I'd be happy to try to investigate further;
however without the data it will be hard to figure this one out.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University
ents into a single matrix.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 9/12/2016 6:20 AM, Joseph W. Brown wrote:
We have a non-R tool that ca
:
http://blog.phytools.org/2015/09/the-difference-between-different.html.
You can also fit an Mk model using diversitree or phangorn. (Look for
details on my blog.)
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
I'm sure this is possible, but I really don't understand the question.
Maybe you could draw what you have in mind on a piece of paper and post
a picture of the paper
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http
I'm sure Florian's solution works, though I haven't tried it.
Here is another one that may work that I just posted to my blog:
http://blog.phytools.org/2016/09/collapsing-clades-of-foo-huh.html
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts
y(devtools)
install_github("liamrevell/phytools")
library(phytools)
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 9/12/2016 9
Regarding question (1) here is a solution that I posted earlier:
http://blog.phytools.org/2014/12/testing-hypothesis-that-phylogenetic.html.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email
Hi John.
There is no problem simulating discrete characters on non-ultrametric
trees. You can use sim.char in geiger, sim.history in phytools, or a
number of other functions, in fact.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web
around
to it. I will try but you may be able to figure it out yourself using
Map.Overlap.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 9
I also should have mentioned that phylogenetic signal is expected to be
more sensitive to error in the phylogeny; however this error is in one
direction in that errors will tend to cause phylogenetic signal to be
underestimated.
Liam J. Revell, Associate Professor of Biology
University
. Biol. 60 (3): 245-260.
http://dx.doi.org/10.1093/sysbio/syq098
Many other forms of comparative analysis appear to be much more
sensitive to error in the phylogeny, or have not yet been studied.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts
:
http://blog.phytools.org/search?q=averageTree.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
On 9/17/2016 12:02 PM, Ondřej Mikula wrote
, but it might look something like this:
plotTree(tree)
nodelabels(pie=p1,adj=c(0.5,1),cex=0.5)
nodelabels(pie=p2,adj=c(0.5,0.5),cex=0.5)
nodelabels(pie=p3,adj=c(0.5,0),cex=0.5)
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http
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: http
.,
http://blog.phytools.org/2015/06/customizing-your-contmap-style.html,
also vertical:
http://blog.phytools.org/2016/08/vertical-legend-in-contmap-style-plots.html).
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu
be able to find worked examples on my blog:
http://blog.phytools.org/search?q=add.simmap.legend.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org
plotting the *entire* posterior sample of
changes onto the trees:
http://blog.phytools.org/2016/10/mapping-sampled-changes-on-tree-from.html.
You could also do the latter for any particular stochastic map history.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University
Excellent. I have added those function to phytools on GitHub, so they
can be installed using devtools as follows:
library(devtools)
install_github("liamrevell/phytools")
Glad it was of help. - Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
://blog.phytools.org/2016/11/modified-version-of-grafens-branch.html.
Let me know if this is helpful.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http
d>Ntip(tree))
}
nn<-1:(Ntip(tree)+tree$Nnode)
h<-sapply(nn,ndn,tree=tree)
edge.length<-vector()
for(i in 1:nrow(tree$edge)) edge.length[i]<-diff(h[tree$edge[i,2:1]])
tree$edge.length<-edge.length
plot(tree)
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University o
Hi Katharine.
You can try to search my blog for examples of the function
add.simmap.legend. That might do what you want.
All the best, Liam
Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
ge[i,1]]
If it the nodes are labeled in a different fashion, then it would be
slightly more complicated (for instance, involving the identifying MRCAs
or matching nodes), but similar. How are your node & leaf heights organized?
All the best, Liam
Liam J. Revell, Associate Professor of Biology
201 - 300 of 408 matches
Mail list logo