Package: WeightedTreemaps 0.1.2

WeightedTreemaps: Generate and Plot Voronoi or Sunburst Treemaps from Hierarchical Data

Treemaps are a visually appealing graphical representation of numerical data using a space-filling approach. A plane or 'map' is subdivided into smaller areas called cells. The cells in the map are scaled according to an underlying metric which allows to grasp the hierarchical organization and relative importance of many objects at once. This package contains two different implementations of treemaps, Voronoi treemaps and Sunburst treemaps. The Voronoi treemap function subdivides the plot area in polygonal cells according to the highest hierarchical level, then continues to subdivide those parental cells on the next lower hierarchical level, and so on. The Sunburst treemap is a computationally less demanding treemap that does not require iterative refinement, but simply generates circle sectors that are sized according to predefined weights. The Voronoi tesselation is based on functions from Paul Murrell (2012) <https://www.stat.auckland.ac.nz/~paul/Reports/VoronoiTreemap/voronoiTreeMap.html>.

Authors:Michael Jahn [aut, cre], David Leslie [aut], Ahmadou Dicko [aut], Paul Murrell [aut, cph]

WeightedTreemaps_0.1.2.tar.gz
WeightedTreemaps_0.1.2.zip(r-4.5)WeightedTreemaps_0.1.2.zip(r-4.4)WeightedTreemaps_0.1.2.zip(r-4.3)
WeightedTreemaps_0.1.2.tgz(r-4.4-x86_64)WeightedTreemaps_0.1.2.tgz(r-4.4-arm64)WeightedTreemaps_0.1.2.tgz(r-4.3-x86_64)WeightedTreemaps_0.1.2.tgz(r-4.3-arm64)
WeightedTreemaps_0.1.2.tar.gz(r-4.5-noble)WeightedTreemaps_0.1.2.tar.gz(r-4.4-noble)
WeightedTreemaps_0.1.2.tgz(r-4.4-emscripten)WeightedTreemaps_0.1.2.tgz(r-4.3-emscripten)
WeightedTreemaps.pdf |WeightedTreemaps.html
WeightedTreemaps/json (API)
NEWS

# Install 'WeightedTreemaps' in R:
install.packages('WeightedTreemaps', repos = c('https://m-jahn.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/m-jahn/weightedtreemaps/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • Jahn_CellReports_2018 - Data from the publication of Jahn et al., CellReports, 2018
  • rounded_rect - Coordinates to draw a rounded rectangle as parent cell for treemaps

On CRAN:

r-programmingrcppsunburst-treemapvoronoi-diagramvoronoi-treemap

8 exports 46 stars 3.19 score 39 dependencies 15 scripts 202 downloads

Last updated 4 months agofrom:3a60127423. Checks:OK: 7 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-win-x86_64NOTESep 15 2024
R-4.5-linux-x86_64NOTESep 15 2024
R-4.4-win-x86_64OKSep 15 2024
R-4.4-mac-x86_64OKSep 15 2024
R-4.4-mac-aarch64OKSep 15 2024
R-4.3-win-x86_64OKSep 15 2024
R-4.3-mac-x86_64OKSep 15 2024
R-4.3-mac-aarch64OKSep 15 2024

Exports:cropped_voronoidrawTreemapget_polygonspoly_areapoly_centroidpoly_transform_shapesunburstTreemapvoronoiTreemap

Dependencies:BHclassclassIntclicolorspaceDBIdplyre1071fansifarvergenericsglueKernSmoothlabelinglatticelifecyclemagrittrMASSmunsellpillarpkgconfigproxyR6RColorBrewerRcppRcppCGALrlangs2scalessfsptibbletidyselectunitsutf8vctrsviridisLitewithrwk

WeightedTreemaps

Rendered fromWeightedTreemaps.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-01-08
Started: 2021-12-09

Readme and manuals

Help Manual

Help pageTopics
as.data.frame.sunburstResultas.data.frame.sunburstResult
as.data.frame.voronoiResultas.data.frame.voronoiResult
cropped_voronoicropped_voronoi
drawTreemapdrawTreemap
get_polygonsget_polygons
Data from the publication of Jahn et al., CellReports, 2018Jahn_CellReports_2018
poly_areapoly_area
poly_centroidpoly_centroid
poly_transform_shapepoly_transform_shape
print.sunburstResultprint.sunburstResult
print.voronoiResultprint.voronoiResult
Coordinates to draw a rounded rectangle as parent cell for treemapsrounded_rect
summary.sunburstResultsummary.sunburstResult
summary.voronoiResultsummary.voronoiResult
sunburstTreemapsunburstTreemap
voronoiTreemapvoronoiTreemap