I'm able to plot a dendrogram with hclust class, but when I'm trying to convert it to as.phylo in ape package it gives me the error for the plot
Error in plot.window(...) : need finite 'xlim' values
Any idea what can cause the problem?
Thanks,
mymerge<-Merg_Mat
myheight<-cumsum(abs(diff(ll)))
myhclust=list(order=lab,merge=mymerge,height=myheight)
class(myhclust)="hclust"
plot(as.phylo(myhclust),edge.col=colors,edge.width = 2, edge.lty =1,font=1)