treemap: Composition Treemap Chart.

Description Usage Arguments Value Examples

View source: R/treemap.R

Description

treemap function will draw Treemap Chart for Composition analysis.

Usage

1
treemap(data, area, fill, label, group, title = NULL, caption = NULL)

Arguments

data

input data.frame

area

area variable

fill

fill variable

label

label variable

group

group variable

title

input data.frame

caption

date variable

subtitle

date variable

Value

An object of class ggplot

Examples

1
2
3
4
5
6
#prep data
proglangs <- read.csv("https://raw.githubusercontent.com/selva86/datasets/master/proglanguages.csv")

#Treemap
plot<- treemap(data=proglangs, area="value", fill="parent", label="id", group="parent", title="Title", caption="caption")
plot

HeeseokMoon/ggedachart documentation built on Dec. 31, 2020, 12:59 p.m.