Create an example Modular SplitBarPlot Shiny Application
Source:R/plotthis_SplitBarPlot_module_app.R
plotthis_SplitBarPlotApp.RdThis function generates a Shiny application with modular plotthis::SplitBarPlot() components.
The app features a Data Import section for uploading data,
a Data Table for filtering the active dataset, and a Plot area
for configuring and displaying an interactive split bar plot.
Details
When data_list is not provided (or NULL), the app launches with
example_bar as an example dataset. Uploaded data files are added
to the available datasets and can be selected for plotting. If an uploaded
file shares a name with an existing dataset, the existing one is overwritten
with a warning.
This is a convenience wrapper around createModuleApp().
Examples
library(VizModules)
# Launch with default example data:
app <- plotthis_SplitBarPlotApp()
if (interactive()) runApp(app)
# Launch with custom data:
app2 <- plotthis_SplitBarPlotApp(list("Bar" = example_bar))
if (interactive()) runApp(app2)