When I use the great package ggdendro to plot my tree, I come across a problem: One day, all labels of the tree it produces suddenly all disappeared.
When I run the following code in my local machine and in server, I get different results. No labels in local machine and labels do exist in the server version.
fit = ClustOfVar::hclustvar(X.quanti = mtcars)
ggdendro::ggdendrogram(as.dendrogram(fit),rotate = TRUE)
Server Version(OK):
Local Windows 7 Version(No labels):
I printed the session info as well for references.
dput compare(the same) :
This issue has been fixed in the latest development version of ggdendro, version 0.1.19
The underlying issue is described at issue #24. This bug was exposed in a change of behaviour in ggplot2, and causes a problem with the scales
package version 0.4. To be clear - the bug was in ggdendro
, not ggplot2
or scales
, but never surfaced when using earlier versions of scales
.
This version is not yet on CRAN, so use devtools
to get the latest version:
devtools::install_github("andrie/ggdendro")
Update. Version 0.1-20 of ggdendro
is now available on CRAN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With