shiny Plot Caching
https://shiny.rstudio.com/articles/plot-caching.html
improve the performance of your plots.
– using R’s base graphics instead of a plotting package
– using JavaScript graphics that render on the client instead of static plots that render on the server
– change the type of plot
( e.g. switching from ggplot2::geom_point
to ggplot2::geom_hex
)
– cache plots with renderCachedPlot()
코드변경을 최소로 하여
cacheKeyExpr :
reactive expressions / reactive values / eventReactive()
/ observeEvent()
the value from cacheKeyExpr
is actually serialized and then hashed,
and the resulting hash value is used as the key.
If you are hashing a large object, this may take a non-negligible amount of time