i,m no being able to filter my data basing on my input using rendenTmap. appears that should me done throught reactive or observe function. which i already did.

this is the function i,m using:

server <- function(input, output, session) {

plot_map <- reactive({
l avouras_map %>% filter(Nomes_prod == input$name) %>%
filter(Gr_areagreg == "Total")
})

output$mapbr <- renderLeaflet({

prod_map <- plot_map()

prod_map %>%
tm_shape()+
tm_polygons("yield")

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.