treeio
treeio copied to clipboard
Error using as.treedata() for pml object
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
Try loading the tidytree package first. as.treedata() lives there now.
library(tidytree)