For some analyses I had to manipulate the tree to become ultrametric using the chronos function in the package ape. Doing this changed my class from 'phylo' into 'chronos phylo'
> class(phy)
[1] "phylo"
> class(phy_ultra)
[1] "chronos" "phylo"
this doesn't seem to give any problems with further analyses of the tree in other packages, however, when I try to load my tree in with ggtree I get the following error
Error in UseMethod("as.phylo") :
no applicable method for 'as.phylo' applied to an object of class "c('chronos', 'phylo')"
Is there a way to circumvent calling as.phylo()? Or is there another way to solve this?
Cheers
Pepijn