Skip to contents

Generate the stackbar plot for the dashboard.

Usage

make_stackbar_plot(dfgroup_long, selected_groups, selected_taxa)

Details

this function makes a bar plot for every brush action in the Shiny to show the components of each clustered pattern group. The bar plot is colored by the taxonomic.scope variable in the processed annotation dataset generated from gAnnotation(). See also ggplot2::geom_bar.

Examples

data(test_data)
make_stackbar_plot(test_maindata, "Group_5", c("hormonal proteins","structural proteins","enzymes","storage proteins","antibodies","transport proteins"))