I'm having difficulty linking the widget to the leaflet map. Can you clarify what you mean by "all unique IDs must have a corresponding variable in the data" when filtering the output?
I'm trying to show type of collision by time of day, but I'm confused on how to filter collision. Since it's a categorical variable I tried filtering by it's label but the data only ends working for one type of collision and not the rest. The time of day output doesn't seem to be working for me either. Not sure what I'm doing wrong, but any guidance would be greatly appreciated!
Input:
selectInput(inputId = "time.of.day",
label = h3("Time of Day"),
choices = list("Morning Commute",
"Evening Commute",
"School Pickup",
"Work",
"Night",
"Midnight to Dawn"),
selected = c("Morning Commute"))
checkboxGroupInput("Collisionmanner",
label = h3("Type of Collision"),
choices = list("Rear End",
"Left Turn",
"Angle (Front to Side)(Other than Left Turn)",
"Sideswipe Same Direction",
"Single Vehicle",
"Other",
"Head On",
"Unknown",
"Sideswipe Opposite Direction",
"Rear to Side",
"Rear to Rear",
"10"),
selected = c("Rear End",
"Left Turn",
"Head On"))
Hi Professor,
I'm having difficulty linking the widget to the leaflet map. Can you clarify what you mean by "all unique IDs must have a corresponding variable in the data" when filtering the output?
I'm trying to show type of collision by time of day, but I'm confused on how to filter collision. Since it's a categorical variable I tried filtering by it's label but the data only ends working for one type of collision and not the rest. The time of day output doesn't seem to be working for me either. Not sure what I'm doing wrong, but any guidance would be greatly appreciated!
Input:
Output: