Hi Agus - 

Geiger has changed - now you should use rescale. E.g.

library(geiger)
geo <- get(data(geospiza))
lphy <- rescale(geo$phy, "lambda", 0.5) # transform tree in one fell swoop
plot(lphy)



On May 16, 2014, at 11:20 AM, Agus Camacho <[email protected]> wrote:

> Dear list users,
> 
> Im trying to show what happens when we apply lambda transformations to a
> tree.
> 
> For that, I was following swenson's book explanations:
> 
> library(geiger)
> lambda.phylo=transform(tree,1)
> 
> however,  I got the following errors:
> 
>> lambda.phylo=transform(tree,"lambda")
> Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
> stringsAsFactors) :   cannot coerce class ""phylo"" to a data.frame
> 
>> lambda.phylo=geiger::transform(tree,"lambda")
> Error: 'transform' is not an exported object from 'namespace:geiger'
> 
> Any one would point to a workaround for branch transformation and posterior
> visualization of the tree?
> 
> Thanks in advance.
> Agus
> 
> -- 
> Agustín Camacho Guerrero.
> Doutor em Zoologia.
> Laboratório de Herpetologia, Departamento de Zoologia, Instituto de
> Biociências, USP.
> Rua do Matão, trav. 14, nº 321, Cidade Universitária,
> São Paulo - SP, CEP: 05508-090, Brasil.
> 
>       [[alternative HTML version deleted]]
> 
> _______________________________________________
> 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]/

_______________________________________________
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