Learn R Programming

treemap (version 2.4-1)

itreemap: Interactive user interface for treemap

Description

This function is an interactive user interface for creating treemaps. Interaction is provided for the four main input arguments of (treemap) besides the data.frame itself, namely index, vSize, vColor and type. Zooming in and out is possible. Command line outputs are generated in the console.

Usage

itreemap(dtf = NULL, index = NULL, vSize = NULL, vColor = NULL, type = NULL, height = 700, command.line.output = TRUE)

Arguments

dtf
a data.frame (treemap) If not provided, then the first data.frame in the global workspace is loaded.
index
index variables (up to four). See treemap.
vSize
name of the variable that determine the rectangle sizes.
vColor
name of the variable that determine the rectangle colors. See treemap.
type
treemap type. See treemap.
height
height of the plotted treemap in pixels. Tip: decrease this number if the treemap doesn't fit conveniently.
command.line.output
if TRUE, the command line output of the generated treemaps are provided in the console.

Examples

Run this code
## Not run: 
# data(business)
# itreemap(business)
# ## End(Not run)

Run the code above in your browser using DataLab