Summary
In this chapter, we have used a lot of different JavaScript libraries and R packages and have produced a diverse range of plots, many of which you will find useful in your own applications. It's universally true that the actual plotting instructions themselves are very simple (although you can highly customize the output with different arguments) as long as your data is in the right format. It's worth taking the time to understand the types of inputs the packages accept, and if you don't get the results, you want a good place to start fixing the problem by looking at the structure of the input (run str(theInput)
to have R show you the structure of an input). Another potential source of problems is to ensure that Shiny passes arguments to your functions in the correct way. Keep in mind that they will often be strings that will not always function in the same way as in standard R plotting instructions (for example, in the rCharts example, when using a formula-based...