Just wondering if there are tricks/ways in which I could cache the plots being generated through our shiny app.
Background:
We are doing somewhat compute intensive computations which finally result in a plot. I am already caching(using memoise) the computations done, globally in shiny but it still takes about .75 seconds to render a plot. I was just wondering if we can decrease that time by removing the time it takes to render an image and if there are slick ways of already doing it.
More details:
I am using grid to create the plot(heatmap in this case. Ideally would like the caching to be disk based as storing plots in memory wont scale up.
Thanks! -Abhi
Assuming you are using ggplot
(which with Shiny, I would bet is a fair assumption).
Plist
. hash %in% names(Plist)
Plist[hash] <- new_graph