Item distribution chart, ggplot2 equivalent of the dashboard/studio panel
Source:R/plots.R
sframe_plot_item_chart.RdShared by launch_dashboard() (inst/shiny/dashboard/app.R) and the
SurveyStudio dashboard tab (inst/shiny/app.R), which otherwise
duplicated this base-graphics chart. Callers fall back to their own base
graphics when this returns NULL (ggplot2 not installed, unsupported
item type, or no data), so the dashboard keeps working without ggplot2.
Usage
sframe_plot_item_chart(
item,
col_data,
choice_set = NULL,
palette = c("web", "print")
)