This function creates a horizontal or vertical treemap chart for a categorical variable.

hgch_treemap_Cat(data, ...)

Arguments

data

a data frame.

...

additional arguments to pass to the hgch_treemap function.

Value

A highchart object.

Examples

data(iris)
iris <- iris |> dplyr::select(Species)
hgch_treemap_Cat(iris, percentage = TRUE)
#> in theme_datasketch