I’ve found the best way to learn Shiny is by example. When I started working with Shiny, I could look at previous projects on my team. Since this is no longer an option, I’ve found some instructive examples to learn from below.
This example (source) uses Shiny Dashboard and efficiently makes an elegant dashboard.
It’s also a good demonstration of Leaflet, which I always recommend for anything mapping related.
This dashboard was made by Zhe Yang. Clone this repository and try to run it. Installing all the dependencies can take awhile but it’s worth it. There are a number of things to like about this dashboard:
In addition to the examples above, here are some resources I’ve found useful.
Shiny Components:the official documentation on shiny components is very useful.
Shiny Dashboard:shinydashboard
makes it easy to structure your Shiny App. This Page has everything that you need to know to get started.
Reactive Programming: The hardest thing about shiny programming is properly understanding reactive programming. Read this to understand how reactivity in Shiny works. This is also useful for learning about react.js
or vue.js
in the future.