O'Reilly logo

Learning Shiny by Hernán G. Resnizky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required