Dynamic Valuebox R

Asked

Viewed 101 times

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?

  • 1

    Have you seen the function renderValueBox?

  • Tomás, yes I saw this function, but I couldn’t apply...

  • Your example isn’t complete, so you can’t understand why it wouldn’t work...

  • Anyway, dynamic things should reference the list input, where user interactions will be available to use in calculations/conditions.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.