-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting Input & Output in Dashboard #27
Comments
Alright, I've corrected the output as follows: DrugUse_Drv1 %in% input$driver.1.drugs, |
Hi Sean, Are you intending to use the original variables or the new variables Did you implement the code in issue #24 ? These variables will be troublesome without them. If the former, what are you expecting to happen and what is happening instead? What error message are you getting, if any? What is displayed? Do the input widgets function and does the output draw a map? Also, is there a reason you're using radio buttons and not For radio buttons, Another method for trouble shooting is renaming |
I did implement the code in #24. I used the former and now it seems to be working. Thank you |
You're welcome! What ended up fixing it? Just for my knowledge and future reference? |
I just made the variables exactly equal the inputs. |
Thanks for getting back to us, Sean!
…On Fri, Jul 31, 2020, 7:31 PM S Waggoner ***@***.***> wrote:
I just made the variables exactly equal the inputs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXLEPBLM53SE2GNZPDGEKLR6NH53ANCNFSM4POKPEUQ>
.
|
Hello, I'm having trouble connecting my input and output in the dashboard.
Here is my input:
selectInput(inputId = "driver.1.alcohol",
label = h4("Driver 1: Influence of Alcohol"),
choices = c("No Apparent Influence","Alcohol"),
selected = c("No Apparent Influence"))
selectInput(inputId = "driver.2.alcohol",
label = h4("Driver 2: Influence of Alcohol"),
choices = c("No Apparent Influence","Alcohol"),
selected = c("No Apparent Influence"))
selectInput(inputId = "driver.1.drugs",
label = h4("Driver 1: Influence of Drugs"),
choices = c("No Apparent Influence","Drugs"),
selected = c("No Apparent Influence"))
selectInput(inputId = "driver.2.drugs",
label = h4("Driver 2: Influence of Drugs"),
choices = c("No Apparent Influence","Drugs"),
selected = c("No Apparent Influence"))
Here is my output:
renderLeaflet({
d2 <- dat %>%
filter(AlcoholUse_Drv1 %in% input$driver.1.alcohol,
AlcoholUse_Drv2 %in% input$driver.2.alcohol,
DrugUse_Drv1 %>% input$driver.1.drugs,
DrugUse_Drv2 %>% input$driver.2.drugs)
Any help would be appreciated, thank you.
The text was updated successfully, but these errors were encountered: