π‘ What is a ShinyApp?
Shiny is a framework that allows you to create web applications - ShinyApps βΊοΈ You can use them for multiple purposes - to visualize data π¨ (for instance the Scottish Household Survey by @ViktErik, bit.ly/3TqZevY, ...
@ViktErik ... or the #SDG by @Shel_Kariuki, bit.ly/sdg-shiny), ...
@ViktErik @Shel_Kariuki ... build interactive appendices (bit.ly/shiny-appendix) or search engines (bit.ly/shiny-se), and so much more β¨
If you want more, have a look at the #shiny gallery @rstudio: shiny.rstudio.com/gallery/ β
@ViktErik @Shel_Kariuki @rstudio π‘ What does a ShinyApp need?
A ShinyApp consists of two central components. The UI and the server -- or, as I like to think about them, the body π€ and the brain π§
@ViktErik @Shel_Kariuki @rstudio π‘ What is the UI?
The user interface (or short UI) is like the body of your app π€ It allows you to define how it looks and where the components (such as text, visualizations, or tables) are placed. It defines the outer appearance of your app. The code works as follows:
@ViktErik @Shel_Kariuki @rstudio π‘ What is the server?
The server is the brain - here's where all the computing happens π§ You can dump (more or less) all your typical functions (such as plotting something with π¦ {ggplot2}) in here π€
It can look like this:
@ViktErik @Shel_Kariuki @rstudio But now it's your turn - are there any plans on turning a project into a #ShinyApp? Or did you already do it? Tell us about it! β¨
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.