Currently the data is recalculated for each plot executed. That is obviously only needed if the input parameters are recalibrated.
You can do that by using the Shiny Event System, specifically eventReactive [1]. That way you can listen to a list of events like "input changed" or "button clicked" events and react to that; in our case recalculate the data.
Currently the data is recalculated for each plot executed. That is obviously only needed if the input parameters are recalibrated.
You can do that by using the Shiny Event System, specifically
eventReactive
[1]. That way you can listen to a list of events like "input changed" or "button clicked" events and react to that; in our case recalculate the data.[1] https://shiny.rstudio.com/reference/shiny/latest/observeEvent.html