diff --git a/app.R b/app.R index d4cac44..6419259 100644 --- a/app.R +++ b/app.R @@ -365,17 +365,18 @@ server <- function(input, output, session) { }) output$layer1 <- renderPlotly({ - plot_ly(.likelihoods$p_ba, y = ~range, color = ~nodeNames, type = "box") %>% - layout(xaxis = list(zerolinewidth=2)) #%>% - #withSpinner() - + if (length(.likelihoods$p_ba)>0) { + plot_ly(.likelihoods$p_ba, y = ~range, color = ~nodeNames, type = "box") %>% + layout(xaxis = list(zerolinewidth=2)) + + } }) output$layer2 <- renderPlotly({ if (.selections$layer>1) { plot_ly(.likelihoods$ba_os, y = ~range, color = ~nodeNames, type = "box") %>% - layout(xaxis = list(zerolinewidth=2)) #%>% - #withSpinner() + layout(xaxis = list(zerolinewidth=2)) + } }) @@ -383,8 +384,8 @@ server <- function(input, output, session) { if (.selections$layer>2) { plot_ly(.likelihoods$os_es, y = ~range, color = ~nodeNames, type = "box") %>% - layout(xaxis = list(zerolinewidth=2)) #%>% - #withSpinner() + layout(xaxis = list(zerolinewidth=2)) + } }) } diff --git a/data/BaselineTestHabitat.xlsx b/data/BaselineTestHabitat.xlsx deleted file mode 100644 index 702d6e9..0000000 Binary files a/data/BaselineTestHabitat.xlsx and /dev/null differ diff --git a/data/Test_Hab_MBA_weights.xlsx b/data/Test_Hab_MBA_weights.xlsx new file mode 100644 index 0000000..dfa7336 Binary files /dev/null and b/data/Test_Hab_MBA_weights.xlsx differ diff --git a/data/WorkingTestHabitat.xlsx b/data/Test_Schema.xlsx similarity index 100% rename from data/WorkingTestHabitat.xlsx rename to data/Test_Schema.xlsx