shiny Plot Caching

Published onesixx on

https://shiny.rstudio.com/articles/plot-caching.html
R

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()
코드변경을 최소로 하여

R

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

Categories: Shiny

onesixx

Blog Owner

Leave a Reply

Your email address will not be published.