wilkox / treemapify

🌳 Draw treemaps in ggplot2
http://wilkox.org/treemapify
213 stars 18 forks source link

Error when replicating the tuto #7

Closed collodaRia closed 7 years ago

collodaRia commented 7 years ago

Hello, I faced a bug while trying to replicate the tuto. I have just changed my computer and wanted to relaunch a script using your treemap function. This script was working on the old computer but now it's failing. I have tested with your tuto (G20 dataset) and I get the message error message: "Error : Continuous value supplied to discrete scale"

sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: macOS Sierra 10.12.2 locale: [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] treemapify_0.2.1 reshape2_1.4.2 ggplot2_2.2.0 plyr_1.8.4 devtools_1.12.0 loaded via a namespace (and not attached): [1] Rcpp_0.12.8 assertthat_0.1 digest_0.6.10 withr_1.0.2 grid_3.3.2 R6_2.2.0 gtable_0.2.0 magrittr_1.5
[9] git2r_0.16.0 scales_0.4.1 httr_1.2.1 stringi_1.1.2 curl_2.3 lazyeval_0.2.0 tools_3.3.2 stringr_1.1.0
[17] munsell_0.4.3 colorspace_1.3-2 memoise_1.0.0 tibble_1.2

Problem with the new OSX or latest version of R ?

Thanks a lot for your work and your help, Bests

wilkox commented 7 years ago

Thanks for the bug report @collodaRia! I don't think this had to do with you changing computers, I accidentally introduced this bug with a change I made yesterday. Can you please reinstall with:

library(devtools)
install_github("wilkox/treemapify")

and let me know if it's working for you now?

collodaRia commented 7 years ago

Works just fine again :-) Thanks a lot !