I am trying to filter the data_ on the basis of 'species' input values (filterDataServer) and return the modified dataset which I need to use in plotServer, so that the specific check box selection reflects in the plot.
By default it will select all the values of Species and if a user deselect any selection from check box the data will get filtered.
Many thanks @nirgrahamuk . Just a follow-up question. What if I have more than one filtering option in observEvent? Do I need to make reactive statement for all other filters? and what change I need to do in return statement?
Why don't you attempt this and get back, you can make a new reprex if you hit a problem.
If you are familiar with dplyr filter in general, then it hardly changes anything that we are using in a shiny context. Your filter module should return a list of the values set on it .
@nirgrahamuk , Thanks for the guidance. I could return multiple reactive values and the filters are also working perfectly. But I noticed one issue in the above code you given. If you select 'Filter' button for two times, the filters get reset automatically. Is there any way to fix this?