0

I am new in creating shiny apps, please some patience with me. My code is relative big, so I share the link https://github.com/xxguisseppe/shiny_app_pnuma.git to download all the folders with the data and scripts. The complete shapefile (~40 mb) you can download it from this OneDrive link also https://1drv.ms/u/s!AqJWtFFI2ijyh3G9_XsTCtjlwmQZ?e=T9D6TO.

Inside There are two codes. shinny_app.R and shinny_app_v2.R. If you use the first one, you can display the information of DENGUE in a tabPanel in the left, but the map with the different sectors on the right take its time to apper on screen.

When I use the second script shinny_app_v2.R, where I add a navbarMenu() with other information. The map in the tabPanel never appears.

In my script I am using $mymap_shape_click, renderLeaflet(), reactiveVal() and observeEvent(). Also, the data DENGUE_v2.txt and Malaria_v2.txt are html information that I use in the htmlOutput() in th UI.

I change my shapefile with this code:

file_shape <- st_read("./SECTORES/SECTORES.shp")
file_shape2 <- rmapshaper::ms_simplify(file_shape,keep = 0.05, keep_shapes = TRUE)

But, it still the map doesn't appear in the second script. I just started programming in shiny 2 weeks ago, so I don't know what else to do.

P.D. Sorry for my English I'm not native

Guisseppe
  • 3
  • 4

0 Answers0