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

hgch_bar_Cat(data, ...)

Arguments

data

a data frame.

...

additional arguments to pass to the hgch_bar function.

Value

A highchart object.

Examples

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