hgch_donut.Rd
This function generates a Highcharts donut chart based on the given data.
hgch_donut(data, dic = NULL, var_cat = NULL, var_num = NULL, ...)
A data frame containing the data to be plotted.
A named list of character vectors that replaces column names in data. The names of the list should match column names in data, and each vector should contain the replacement names.
A character vector of categorical variable(s) to use in the chart.
A character vector of numeric variable(s) to use in the chart.
Additional arguments to be passed to plot_opts
.
A Highcharts donut chart object.
data1 <- data.frame(name = c("A", "B", "C"), y = c(10, 20, 30))
hgch_donut(data1, var_cat = "name", var_num = "y")
#> in theme_datasketch