Include length check before printing first graph.
Add Pete's new models
This commit is contained in:
17
app.R
17
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))
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Binary file not shown.
BIN
data/Test_Hab_MBA_weights.xlsx
Normal file
BIN
data/Test_Hab_MBA_weights.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user