We are R-Ladies Profile picture
Rotating Curator for the @RLadiesGlobal community #RLadies (currently on a brief break)

Sep 16, 2022, 8 tweets

Today, we'll discover how you can use the power of #rstats to create an interactive #shinyapp ✨

πŸ’‘ 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 @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.

Keep scrolling