210 likes | 226 Views
Agile Analytics: Visualisation in Shiny and R. Links for downloads. R direct link Windows: https://cran.ma.imperial.ac.uk/bin/windows/base/R-3.5.0-win.exe MAC: https://cran.ma.imperial.ac.uk/bin/macosx/R-3.5.0.pkg R studio: Windows: https://download1.rstudio.org/RStudio-1.1.453.exe
E N D
Links for downloads • R direct link • Windows: https://cran.ma.imperial.ac.uk/bin/windows/base/R-3.5.0-win.exe • MAC: https://cran.ma.imperial.ac.uk/bin/macosx/R-3.5.0.pkg • R studio: • Windows: https://download1.rstudio.org/RStudio-1.1.453.exe • MAC: https://download1.rstudio.org/RStudio-1.1.453.dmg • This presentation and Codes:http://bit.ly/RShinyCourse • Our Linkedin profiles: • Eduardo Contreras https://www.linkedin.com/in/eduardocontrerasc/ • Michael Mortenson https://www.linkedin.com/in/michael-mortenson-44321832/
Motivation https://apiumtech.com/blog/agile-project-management-benefits/
Motivation • SELECTED ITEMS FROM THE AGILE MANIFESTIO (http://agilemanifesto.org/principles.html): • Our highest priority is to satisfy the customer through early and continuous delivery of valuable software • Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage • Working software is the primary measure of progress • Simplicity--the art of maximizing the amount of work not done--is essential
Motivation Visual, interactive, accessible solutions Flexible ‘analyst-friendly’ technology Simple first, scalable later: “simple models for a complex world”
What will be covered? • Load data from CSV • Output data in a Table • Plot data and filter source • Calculate a logistic regression • Testing the model • Alternative models • Upload to Google Cloud (and server settings)
What do you need to use R Shiny? • R Studio • Shiny libraries • Other useful libraries • Plotly: Interactive Graphics • DT: Data tables outputs • Dplyr: Data Transformations • Rpart: Decision Trees • e1071: Support Vector Machines
How does it works? • It has two main components • The User Interface (UI) • The Server
The basics • We will use Shinydashboard, makes it easy to use Shiny • Lets Run the App by opening the R file and click in Run APP
The basics • The dashboard has three parts: header, sidebar and body
Basic Dashboard • Adding content to the Sidebar
Basic Dashboard • Adding content to the Body
And the last step • Adding the Header
Time to explore the App • Install libraries • Load the Excel File • Explore the dataset • Plot only “Married” customers • Calculate the logistic regression • Download the Results
And you can link to other files as a way to organise your code better
Going live https://cloud.google.com https://filezilla-project.org
Where to learn more… • R programminghttps://www.datacamp.com/courses/free-introduction-to-r • Free Shiny Interactive Tutorialhttps://www.datacamp.com/courses/building-web-applications-in-r-with-shiny • More tricks of Shinydashboard and actionshttps://rstudio.github.io/shinydashboard/structure.htmlhttp://shiny.rstudio.com/gallery/widget-gallery.html • Gallery of plots with codehttps://plot.ly/r/ • Useful data transformations with Dplyr and Tidyrhttps://dplyr.tidyverse.org/https://blog.rstudio.com/2014/07/22/introducing-tidyr/