Collapsible Tree
collapsibleTree
library(data.tree)
library(treemap)
data(GNI2014)
GNI2014$pathString <- paste("world",
GNI2014$continent,
GNI2014$country,
sep = "/")
population <- as.Node(GNI2014)
library(collapsibleTree)
collapsibleTree(population)
[1] “Node\(fields will be deprecated in the next release. Please use Node\)attributes instead.”
R sessionInfo
R version 4.2.0 (2022-04-22) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS
Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale: [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] ggtree_3.5.1.902 collapsibleTree_0.1.7 treemap_2.4-3
[4] data.tree_1.0.0 Wu_0.0.0.9000 flexdashboard_0.5.2
[7] lme4_1.1-29 Matrix_1.4-0 mgcv_1.8-38
[10] nlme_3.1-152 png_0.1-7 scales_1.2.0
[13] nnet_7.3-16 labelled_2.9.1 kableExtra_1.3.4
[16] plotly_4.10.0 gridExtra_2.3 ggplot2_3.3.6
[19] DT_0.23 tableone_0.13.2 magrittr_2.0.3
[22] lubridate_1.8.0 dplyr_1.0.9 plyr_1.8.7
[25] data.table_1.14.2 rmdformats_1.0.4 knitr_1.39
loaded via a namespace (and not attached): [1] webshot_0.5.3 RColorBrewer_1.1-3 httr_1.4.3 tools_4.2.0
[5] bslib_0.3.1 utf8_1.2.2 R6_2.5.1 DBI_1.1.2
[9] lazyeval_0.2.2 colorspace_2.0-3 withr_2.5.0 tidyselect_1.1.2
[13] compiler_4.2.0 cli_3.3.0 rvest_1.0.2 xml2_1.3.3
[17] labeling_0.4.2 bookdown_0.27 sass_0.4.1 yulab.utils_0.0.5 [21] systemfonts_1.0.4 stringr_1.4.0 digest_0.6.29 minqa_1.2.4
[25] rmarkdown_2.14 svglite_2.1.0 pkgconfig_2.0.3 htmltools_0.5.3
[29] highr_0.9 fastmap_1.1.0 htmlwidgets_1.5.4 rlang_1.0.4
[33] rstudioapi_0.13 shiny_1.7.1 farver_2.1.1 gridGraphics_0.5-1 [37] jquerylib_0.1.4 generics_0.1.3 jsonlite_1.8.0 ggplotify_0.1.0
[41] patchwork_1.1.1 Rcpp_1.0.9 munsell_0.5.0 fansi_1.0.3
[45] ape_5.6-2 lifecycle_1.0.1 stringi_1.7.8 yaml_2.3.5
[49] MASS_7.3-54 grid_4.2.0 parallel_4.2.0 promises_1.2.0.1
[53] forcats_0.5.1 lattice_0.20-45 haven_2.5.0 splines_4.2.0
[57] hms_1.1.1 klippy_0.0.0.9500 pillar_1.8.0 igraph_1.3.4
[61] boot_1.3-28 glue_1.6.2 evaluate_0.15 ggfun_0.0.6
[65] mitools_2.4 treeio_1.21.0 vctrs_0.4.1 nloptr_2.0.3
[69] httpuv_1.6.5 gtable_0.3.0 purrr_0.3.4 tidyr_1.2.0
[73] assertthat_0.2.1 xfun_0.31 gridBase_0.4-7 mime_0.12
[77] xtable_1.8-4 survey_4.1-1 tidytree_0.3.9 later_1.3.0
[81] survival_3.2-13 viridisLite_0.4.0 tibble_3.1.8 aplot_0.1.6
[85] ellipsis_0.3.2