treeio icon indicating copy to clipboard operation
treeio copied to clipboard

Error using as.treedata() for pml object

Open gdunshea opened this issue 1 year ago • 1 comments

Hello,

I have made a pml tree similar to section 1.3.3 in your vignette. However, when I get to

pmltree <- as.treedata(fit)

I get the following error:

Error in UseMethod("as.treedata") : no applicable method for 'as.treedata' applied to an object of class "pml"

I am at a loss here and wonder if you could help.

Thanks, Glenn

gdunshea avatar Aug 21 '24 09:08 gdunshea

Try loading the tidytree package first. as.treedata() lives there now.

library(tidytree)

brj1 avatar Aug 21 '24 18:08 brj1