server.R coding

After analysis and the application's design, this is definitely the most important stage of coding. A well-programmed backend is the key to performance and consequently effective visualizations. In this part, as in every backend process, the focus should be on producing the output with as little code and processing as possible. In order to achieve this, the key is to avoid repetition.

In our example, all the outputs are produced from the same dataset, which is basically the data source filtered by the corresponding input values. As it was explained in Chapter 5, Shiny in Depth – A Deep Dive into Shiny's World, there is no need to generate the same object for every visualization, as a reactive object can be used instead. In this ...

Get Learning Shiny now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.