Is it possible to use the results of the dataframe (from reactive function) to create a map ?

Hello,

I have a question on Shiny.

I have an app which is working well.

In this app I a have a view : a dataframe with data (that change when we change the input (date for exemple))

(For create this dataframe, i used :

  • some reactive for create the dataframe at one date
  • 1 reactive for formattable the dataframe

My question is :
Is it possible to use the results of the dataframe (from reactive function) to create a map ? and how to do it ?

My data are good in the dataframe, I just need to had the geographic points, and to do a leafmap with

but i don't know if i can call the reactive dataframe.

Any help ?

Many thanks

Hi, yes you can. In fact, the leaflet Shiny Integration documentation has some examples that uses reactive expressions to render the points on the map.

1 Like