Re: [R-sig-phylo] Converting a List of Trees into a multiPhylo Object

2011-07-18 Thread Liam J. Revell
Try: class(y)<-"multiPhylo" for list y. Does that work? - Liam Liam J. Revell University of Massachusetts Boston web: http://www.bio.umb.edu/facstaff/faculty_Revell.html email: liam.rev...@umb.edu blog: http://phytools.blogspot.com -Original Message- From: David Bapst Sent: Monday, J

Re: [R-sig-phylo] Converting a List of Trees into a multiPhylo Object

2011-07-18 Thread Emmanuel Paradis
Hello David, Simply: class(y) <- "multiPhylo" Best, Emmanuel -Original Message- From: David Bapst Sender: r-sig-phylo-boun...@r-project.org Date: Mon, 18 Jul 2011 19:02:17 To: R Sig Phylo Listserv Subject: [R-sig-phylo] Converting a List of Trees into a multiPhylo Object Hello all, I

[R-sig-phylo] Converting a List of Trees into a multiPhylo Object

2011-07-18 Thread David Bapst
Hello all, I have a lapply() function which is outputting phylo objects (the input is a list of complicated tables, each of which corresponds to a resulting tree, long story). The following is NOT what I'm doing, but gives you an idea of what the result from lapply() looks like. require(ape) x<-l

[R-sig-phylo] Session on Phylogenetic Paleobiology at GSA 2011 (Abstracts Due in a Week!)

2011-07-18 Thread David Bapst
Hello all, I just wanted to send a last reminder to the readers of this list about a particular conference session at this year's Geological Society of America 2011. This conference will be held in Minneapolis, from October 9th to the 12th. This session, proposed by Emily King and I, will focus on

Re: [R-sig-phylo] Finding distances between tree nodes

2011-07-18 Thread Scott Chamberlain
require(ape) tree <- rtree(10) dist.nodes(tree) dist.nodes gives you pairwise distances between all nodes and tips, then you can just pick out the one you want from the output matrix HTH, Scott On Monday, July 18, 2011 at 5:26 AM, Liutauras Rusaitis wrote: > Hello, > > We're using the Ape l

Re: [R-sig-phylo] co-occurrence vs. phylogenetic distance plot

2011-07-18 Thread Marcelino de la Cruz
Hi Eugen, maybe this is because you don't say how to measure "co-occurence". An idea with the data from picante: library(picante) data(phylocom) phy <- phylocom$phylo comm <- phylocom$sample # a kind of phylogenetic distance between species (all species of the tree) phd <- cophenetic(phy)

[R-sig-phylo] Finding distances between tree nodes

2011-07-18 Thread Liutauras Rusaitis
Hello, We're using the Ape library here in a plant shape research, and we need to find evolutionary time between two specific nodes on the evolutionary tree (by adding the branch lengths along from one node to another). I'd appreciate if anyone could hint the quickest way to do it. Thanks, L

[R-sig-phylo] co-occurrence vs. phylogenetic distance plot

2011-07-18 Thread Eugen
HI@all, guess I made something wrong, cause my question didn't show up. Anyway, I was looking for a way to plot co-occurrence vs. phylogenetic distance in R. I'm working with picante but there seems to be no such function in the package. Anyone an idea? greets Eugen -- Eugen Egorov PhD Student