Hi Luigi.
Unfortunately, I think you may need to supply us with some more details
to try and figure out what your problem is.
Does your code look like:
D-dist.dna(obj)
## obj is class DNAbin, e.g.:
## data(woodmouse)
## obj-woodmouse
tree-upgma(D)
plot(tree) ## works
Bingo, problem solved, thank you Liam!
On 6/27/2013 5:51 PM, Liam J. Revell wrote:
I'm guessing this is because you need to specify the argument file
by name and are not doing so - i.e.:
write.nexus(tree,file=filename)
This is because the first argument in write.nexus, unlike write.tree,
is
Elaine,
Did you ever solve this problem? I have run into the same error in the
same context (trying to write.nexus() after pruning a tree).
-Peter
--
Peter Adler
Dept. Wildland Resources and the Ecology Center
Utah State University
http://www.cnr.usu.edu/htm/facstaff/adler-web
I'm guessing this is because you need to specify the argument file by
name and are not doing so - i.e.:
write.nexus(tree,file=filename)
This is because the first argument in write.nexus, unlike write.tree, is
the ... three-dot argument so subsequent arguments need to be indicated
by name
I changed pruned.tree to tree.pruned.
The error still existed.
Elaine
-- Forwarded message --
From: Elaine Kuo elaine.kuo...@gmail.com
Date: Fri, Apr 5, 2013 at 6:12 PM
Subject: atomic vector for write.nexus
To: r-sig-phylo@r-project.org
Hello,
This is Elaine.
I am using the