Closed MayaGans closed 6 years ago
Hi Maya, glad you like the app. I'm a bit confused by your questions. Are you having trouble with this app or trying to create your own? If you're having trouble with dynamically sending inputs to the user, check out updateSelectInput (https://shiny.rstudio.com/reference/shiny/latest/updateSelectInput.html). There's an example that may help.
Sorry for the confusion - I was trying to build your app from scratch to reproduce only the Inference tab but instead I took the more logical direction of dissecting your code line for line.
I see another issue was opened to the same effect but I'm hoping to reproduce the Inference tab but with the ability to select multiple evidence nodes (and multiple drop downs for the evidence).
Thank you for the wonderful app!
Hi! I absolutely LOVE the Shiny App you've made! It's incredibly inspiring and I want to fully understand it before applying something similar to my own data. This is my first go at a shiny app so I'm sorry if my questions are extremely obvious but it's hard to google some of these issues!
Specifically, I want to use a network I've already made and create what you have under the inference tab using that network.
I'm using the Alarm dataset in my example below, and rather than letting the event be specified I only want it to be "ACO2" (as seen in
nodeProbs
).1) I can't seem to get the buttons to generate the alarm col names dynamically so I defined the choices as
colnames(dat)
in the Inputselect forinput$evidenceNode
where you have it as""
2) Similarly, I can't generate the
input$evidence
drop down [I put choices = c("HIGH", "LOW", "NORMAL") but this isn't always the case so I'd like this to update dynamically]3) When trying to debug I put specific arguments into nodeProbs but a graph still wont generate.
Again, I realize I'm asking a lot and I'm sorry in advanced if these questions are silly. Thank you for any help you can provide because the application you made is magnificent and I'm learning so much going through your code!