Include length check before printing first graph.
Add Pete's new models
This commit is contained in:
1 parent
bfb1afbd3b
commit
03478a466c
4 files changed
+7
-6
No files matched your search
@@ -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.
File renamed without changes.
Reference in new issue
Block a user