Include length check before printing first graph.

Add Pete's new models
This commit is contained in:
2019-02-07 15:55:19 +00:00
parent bfb1afbd3b
commit 03478a466c
4 changed files with 9 additions and 8 deletions

13
app.R
View File

@@ -365,17 +365,18 @@ server <- function(input, output, session) {
}) })
output$layer1 <- renderPlotly({ output$layer1 <- renderPlotly({
if (length(.likelihoods$p_ba)>0) {
plot_ly(.likelihoods$p_ba, y = ~range, color = ~nodeNames, type = "box") %>% plot_ly(.likelihoods$p_ba, y = ~range, color = ~nodeNames, type = "box") %>%
layout(xaxis = list(zerolinewidth=2)) #%>% layout(xaxis = list(zerolinewidth=2))
#withSpinner()
}
}) })
output$layer2 <- renderPlotly({ output$layer2 <- renderPlotly({
if (.selections$layer>1) { if (.selections$layer>1) {
plot_ly(.likelihoods$ba_os, y = ~range, color = ~nodeNames, type = "box") %>% plot_ly(.likelihoods$ba_os, y = ~range, color = ~nodeNames, type = "box") %>%
layout(xaxis = list(zerolinewidth=2)) #%>% layout(xaxis = list(zerolinewidth=2))
#withSpinner()
} }
}) })
@@ -383,8 +384,8 @@ server <- function(input, output, session) {
if (.selections$layer>2) { if (.selections$layer>2) {
plot_ly(.likelihoods$os_es, y = ~range, color = ~nodeNames, type = "box") %>% plot_ly(.likelihoods$os_es, y = ~range, color = ~nodeNames, type = "box") %>%
layout(xaxis = list(zerolinewidth=2)) #%>% layout(xaxis = list(zerolinewidth=2))
#withSpinner()
} }
}) })
} }

Binary file not shown.

Binary file not shown.