Skip to content

Commit

Permalink
Fixed a small error on plot_upset
Browse files Browse the repository at this point in the history
Was using 'db_list' instead of 'calculate_results()$db_list'
  • Loading branch information
gavieira committed Dec 2, 2023
1 parent 1c0b756 commit 90c7136
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions inst/biblioverApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,18 @@ server <- function(input, output, session) {
#### Generating plots (reactive functions)

summary_plot <- reactive( {
summary <- biblioverlap::plot_matching_summary(calculate_results()$summary,
biblioverlap::plot_matching_summary(calculate_results()$summary,
text_size = input$summary_text_size,
size = input$summary_value_size)
return(summary)
})

venn_plot <- reactive( {
venn <- biblioverlap::plot_venn(calculate_results()$db_list,
biblioverlap::plot_venn(calculate_results()$db_list,
label = input$venn_label,
label_color = input$venn_label_color,
label_size = input$venn_label_size,
label_alpha = input$venn_label_alpha,
set_size = input$venn_set_size )
return(venn)
} )

# Upset plots from UpSetR can hide its empty intersections if a NULL value is passed to its `empty.intersections` parameter
Expand All @@ -222,8 +220,8 @@ server <- function(input, output, session) {
})

upset_plot <- reactive ({
upset <- biblioverlap::plot_upset(calculate_results()$db_list,
nsets = length(db_list),
biblioverlap::plot_upset(calculate_results()$db_list,
nsets = length(calculate_results()$db_list),
nintersects = input$nintersects,
order.by = input$order.by,
scale.intersections = input$scale,
Expand All @@ -233,7 +231,6 @@ server <- function(input, output, session) {
show.numbers = input$show.numbers,
mb.ratio = c(input$mb.ratio, 1 - input$mb.ratio)
)
return(upset)
} )

#Displaying plots in shinyApp (renderPlot functions)
Expand Down

0 comments on commit 90c7136

Please sign in to comment.