treeMap: Fast tree map wrapper

Description Usage Arguments Details Value See Also Examples

View source: R/doEDA.R

Description

This is a wrapper for the workflow producing a tree map via treemap package. See treemap-package.

Usage

1
2
treeMap(.tbl_df, .group, index, type = "index", sizeby = "n",
  fontfamily.labels, fontfamily.title, title = NULL, ...)

Arguments

.tbl_df

A data frame

.group

A factor variable

index

A string identical to .group

type

A string for index type

sizeby

A string for which the tile size depending on

fontfamily.labels

A string for font type

fontfamily.title

A string for font type

title

A title

...

arguments passed down to treemap()

Details

Other than most of the arguments inherited from treemap(), treeMap() embbeded a default font type, Helvetica for Latin characters and STXihei CJK characters on MacOS, when fontfamily.title and fontfamily.labels are both not specified. One should note that both fontfamily.* arguments should be be absent one-sided. This will not change the font type according to user's will other than the default ones.

Value

A ggplot object

See Also

treemap

Examples

1
treeMap(invest, investment, "investment")

chuckleong21/doEDA documentation built on Nov. 4, 2019, 8:52 a.m.