ggtree
ggtree copied to clipboard
not work for hclust output
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
so wired, it works now.
The ggtree(hc) command works, in the morning. Nothing changed to my ENV, except the time.