Package: WeightedTreemaps 0.1.3

Michael Jahn

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.3.tar.gz
WeightedTreemaps_0.1.3.tar.gz(r-4.5-noble)WeightedTreemaps_0.1.3.tar.gz(r-4.4-noble)
WeightedTreemaps_0.1.3.tgz(r-4.4-emscripten)WeightedTreemaps_0.1.3.tgz(r-4.3-emscripten)
WeightedTreemaps.pdf |WeightedTreemaps.html
WeightedTreemaps/json (API)
NEWS

# Install 'WeightedTreemaps' in R:
install.packages('WeightedTreemaps', repos = c('https://cran.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

3.38 score 16 scripts 158 downloads 8 exports 39 dependencies

Last updated 17 days agofrom:7784500af8. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-linux-x86_64OKNov 05 2024

Exports:cropped_voronoidrawTreemapget_polygonspoly_areapoly_centroidpoly_transform_shapesunburstTreemapvoronoiTreemap

Dependencies:BHclassclassIntclicolorspaceDBIdplyre1071fansifarvergenericsglueKernSmoothlabelinglatticelifecyclemagrittrMASSmunsellpillarpkgconfigproxyR6RColorBrewerRcppRcppCGALrlangs2scalessfsptibbletidyselectunitsutf8vctrsviridisLitewithrwk

WeightedTreemaps

Rendered fromWeightedTreemaps.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2024-11-04
Started: 2023-12-14

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