ggtree icon indicating copy to clipboard operation
ggtree copied to clipboard

not work for hclust output

Open bakerwm opened this issue 5 years ago • 1 comments
trafficstars

not working for hclust output

> library(ggplot2)
> library(ggtree)

> hc <- hclust(dist(mtcars))
> ggtree(hc)

Error:

> ggtree(hc)
Error: `data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class hclust

> rlang::last_error()
<error/rlang_error>
`data` must be a data frame, or other object coercible by `fortify()`, not an S3 object with class hclust
Backtrace:
 1. ggtree::ggtree(hc)
 3. ggplot2:::ggplot.default(...)
 5. ggplot2:::fortify.default(data, ...)
Run `rlang::last_trace()` to see the full context.
package version:
ggtree_2.1.3     ggplot2_3.3.0 

bakerwm avatar Mar 26 '20 19:03 bakerwm

so wired, it works now. The ggtree(hc) command works, in the morning. Nothing changed to my ENV, except the time.

bakerwm avatar Mar 27 '20 03:03 bakerwm