Learn R Programming

treemap (version 1.1-1)

treemap-package: Treemap visualization

Description

ll{ Package: treemap Type: Package Version: 1.1-1 Date: 2012-07-10 License: GPL-3 LazyLoad: yes }

Arguments

Details

A treemap is a space-filling visualization of hierarchical structures. With this package different kind of treemaps can be generated, such as comparison treemaps and density treemaps. Small multiples are also supported. The function tmPlot is used to plot treemaps. The functions tmClick and tmLocate are used to respectively capture a mouse click on a treemap and locate the corresponding object.

References

http://www.cs.umd.edu/hcil/treemap-history{Shneiderman, B, Plaisant, C (2009) Treemaps for space-constrained visualization of hierarchies. Website} http://www.von-tijn.nl/tijn/research/publications/Top-down_data_analysis_with_Treemaps.pdf"{Tennekes, M., Jonge, E. de (2011) Top-down data analysis with treemaps. Proceedings of the International Conference on Information Visualization Theory and Applications, IVAPP 2011, Algarve, Portugal.}

Examples

Run this code
# load Gross national income data
data(GNI2010)

# create treemap
tmPlot(GNI2010,
       index=c("continent", "iso3"),
       vSize="population",
       vColor="GNI",
       type="value")

Run the code above in your browser using DataLab