data_draw.Rd
This function creates data for a Highcharts plot, given input data and options.
data_draw(
data,
dic = NULL,
var_cat = NULL,
var_num = NULL,
var_date = NULL,
viz = NULL,
frType = NULL,
opts = NULL
)
a data frame containing the data to be plotted
a named vector specifying the categories and colors for the data
the name of the categorical variable in the data frame
the name of the numeric variable in the data frame
the name of the date variable in the data frame
the type of visualization to be created ("treemap", "line", "bar", "pie", or "donut")
a string indicating the format of the data frame (e.g., "CatNum", "DatNum", "CatCatNum")
a list containing options for the plot (e.g., tooltip_template, na_label, format_sample_num)
a list of data for use in creating a Highcharts plot