1
good morning!
I’m doing my first R Dashboard using the flexdashboard package on R markdown and Shiny.
When selecting the filter in (Selectinput) my (Value Box) is static, as I do to make it dynamic when selecting the filter?
Below function used...
#Funcao para chamar o Value boxes
TempMedio = function(...) return(round(mean(df$TempMax), digits = 1))
a = TempMedio()
valueBox(a, icon = "ion-thermometer", color = "#FF8C00")
You are using the function
reactive
, right?– neves
Have you seen the function
renderValueBox
?– Tomás Barcellos
Tomás, yes I saw this function, but I couldn’t apply...
– Edson Santana
Your example isn’t complete, so you can’t understand why it wouldn’t work...
– Tomás Barcellos
Anyway, dynamic things should reference the list
input
, where user interactions will be available to use in calculations/conditions.– Tomás Barcellos