SlideShare a Scribd company logo
1 of 21
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
• 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
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”
Motivation
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
All events triggered are in the Server Section
And you can link to other files as a way to
organise your code better
Testing the data
Going live
https://cloud.google.com https://filezilla-project.org
Where to learn more…
• R programming
https://www.datacamp.com/courses/free-introduction-to-r
• Free Shiny Interactive Tutorial
https://www.datacamp.com/courses/building-web-applications-in-r-with-shiny
• More tricks of Shinydashboard and actions
https://rstudio.github.io/shinydashboard/structure.html
http://shiny.rstudio.com/gallery/widget-gallery.html
• Gallery of plots with code
https://plot.ly/r/
• Useful data transformations with Dplyr and Tidyr
https://dplyr.tidyverse.org/
https://blog.rstudio.com/2014/07/22/introducing-tidyr/

More Related Content

Similar to data-visulisation-for-agile-analytics-workshop.pptx

Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...
Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...
Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...BIWUG
 
Real World Add-in Development for Office365
Real World Add-in Development for Office365Real World Add-in Development for Office365
Real World Add-in Development for Office365Brian Culver
 
build -test and deploy software aplplications with visual studio alm 2012-2013
build -test and deploy  software aplplications with visual studio alm 2012-2013build -test and deploy  software aplplications with visual studio alm 2012-2013
build -test and deploy software aplplications with visual studio alm 2012-2013Hassan Fadili
 
CIAOPS Need to Know Office 365 Webinar - February 2018
CIAOPS Need to Know Office 365 Webinar - February 2018CIAOPS Need to Know Office 365 Webinar - February 2018
CIAOPS Need to Know Office 365 Webinar - February 2018Robert Crane
 
January 2021 Microsoft 365 Need to Know Webinar
January 2021 Microsoft 365 Need to Know WebinarJanuary 2021 Microsoft 365 Need to Know Webinar
January 2021 Microsoft 365 Need to Know WebinarRobert Crane
 
March 2020 Microsoft 365 Need to Know Webinar
March 2020 Microsoft 365 Need to Know WebinarMarch 2020 Microsoft 365 Need to Know Webinar
March 2020 Microsoft 365 Need to Know WebinarRobert Crane
 
Creating reusable pieces in Logic Apps
Creating reusable pieces in Logic AppsCreating reusable pieces in Logic Apps
Creating reusable pieces in Logic AppsBizTalk360
 
Office 365 development overview Nilesh Shah 15 march 2018
Office 365 development overview Nilesh Shah 15 march 2018Office 365 development overview Nilesh Shah 15 march 2018
Office 365 development overview Nilesh Shah 15 march 2018Nilesh Shah
 
November 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarNovember 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarRobert Crane
 
How to Create a Windows App with Project Siena, SharePoint & Office 365
 How to Create a Windows App with Project Siena, SharePoint & Office 365 How to Create a Windows App with Project Siena, SharePoint & Office 365
How to Create a Windows App with Project Siena, SharePoint & Office 365Knut Relbe-Moe [MVP, MCT]
 
Cloud-Based App Development using SharePoint 2013, Office 365 and Azure
Cloud-Based App Development using SharePoint 2013, Office 365 and AzureCloud-Based App Development using SharePoint 2013, Office 365 and Azure
Cloud-Based App Development using SharePoint 2013, Office 365 and AzureTobias Lekman
 
Himmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & DebuggingHimmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & DebuggingSentri
 
Relearning SharePoint Development
Relearning SharePoint DevelopmentRelearning SharePoint Development
Relearning SharePoint Developmentbgerman
 
Build Database Applications for SharePoint!
Build Database Applications for SharePoint!Build Database Applications for SharePoint!
Build Database Applications for SharePoint!Iron Speed
 
Build Database Applications for SharePoint
Build Database Applications for SharePointBuild Database Applications for SharePoint
Build Database Applications for SharePointIron Speed
 
Introduction to SharePoint and Project Siena at SEFORUM14
Introduction to SharePoint and Project Siena at SEFORUM14Introduction to SharePoint and Project Siena at SEFORUM14
Introduction to SharePoint and Project Siena at SEFORUM14Knut Relbe-Moe [MVP, MCT]
 
How to create a Windows app with Project Siena, SharePoint and Office 365
How to create a Windows app with Project Siena, SharePoint and Office 365How to create a Windows app with Project Siena, SharePoint and Office 365
How to create a Windows app with Project Siena, SharePoint and Office 365Knut Relbe-Moe [MVP, MCT]
 
Opticon18: Developer Night
Opticon18: Developer NightOpticon18: Developer Night
Opticon18: Developer NightOptimizely
 
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...Patrick Guimonet
 
April 2020 Microsoft 365 Need to Know Webinar
April 2020 Microsoft 365 Need to Know WebinarApril 2020 Microsoft 365 Need to Know Webinar
April 2020 Microsoft 365 Need to Know WebinarRobert Crane
 

Similar to data-visulisation-for-agile-analytics-workshop.pptx (20)

Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...
Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...
Microsoft Flow advanced: tips, pitfalls, problems and warnings to be known be...
 
Real World Add-in Development for Office365
Real World Add-in Development for Office365Real World Add-in Development for Office365
Real World Add-in Development for Office365
 
build -test and deploy software aplplications with visual studio alm 2012-2013
build -test and deploy  software aplplications with visual studio alm 2012-2013build -test and deploy  software aplplications with visual studio alm 2012-2013
build -test and deploy software aplplications with visual studio alm 2012-2013
 
CIAOPS Need to Know Office 365 Webinar - February 2018
CIAOPS Need to Know Office 365 Webinar - February 2018CIAOPS Need to Know Office 365 Webinar - February 2018
CIAOPS Need to Know Office 365 Webinar - February 2018
 
January 2021 Microsoft 365 Need to Know Webinar
January 2021 Microsoft 365 Need to Know WebinarJanuary 2021 Microsoft 365 Need to Know Webinar
January 2021 Microsoft 365 Need to Know Webinar
 
March 2020 Microsoft 365 Need to Know Webinar
March 2020 Microsoft 365 Need to Know WebinarMarch 2020 Microsoft 365 Need to Know Webinar
March 2020 Microsoft 365 Need to Know Webinar
 
Creating reusable pieces in Logic Apps
Creating reusable pieces in Logic AppsCreating reusable pieces in Logic Apps
Creating reusable pieces in Logic Apps
 
Office 365 development overview Nilesh Shah 15 march 2018
Office 365 development overview Nilesh Shah 15 march 2018Office 365 development overview Nilesh Shah 15 march 2018
Office 365 development overview Nilesh Shah 15 march 2018
 
November 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarNovember 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know Webinar
 
How to Create a Windows App with Project Siena, SharePoint & Office 365
 How to Create a Windows App with Project Siena, SharePoint & Office 365 How to Create a Windows App with Project Siena, SharePoint & Office 365
How to Create a Windows App with Project Siena, SharePoint & Office 365
 
Cloud-Based App Development using SharePoint 2013, Office 365 and Azure
Cloud-Based App Development using SharePoint 2013, Office 365 and AzureCloud-Based App Development using SharePoint 2013, Office 365 and Azure
Cloud-Based App Development using SharePoint 2013, Office 365 and Azure
 
Himmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & DebuggingHimmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & Debugging
 
Relearning SharePoint Development
Relearning SharePoint DevelopmentRelearning SharePoint Development
Relearning SharePoint Development
 
Build Database Applications for SharePoint!
Build Database Applications for SharePoint!Build Database Applications for SharePoint!
Build Database Applications for SharePoint!
 
Build Database Applications for SharePoint
Build Database Applications for SharePointBuild Database Applications for SharePoint
Build Database Applications for SharePoint
 
Introduction to SharePoint and Project Siena at SEFORUM14
Introduction to SharePoint and Project Siena at SEFORUM14Introduction to SharePoint and Project Siena at SEFORUM14
Introduction to SharePoint and Project Siena at SEFORUM14
 
How to create a Windows app with Project Siena, SharePoint and Office 365
How to create a Windows app with Project Siena, SharePoint and Office 365How to create a Windows app with Project Siena, SharePoint and Office 365
How to create a Windows app with Project Siena, SharePoint and Office 365
 
Opticon18: Developer Night
Opticon18: Developer NightOpticon18: Developer Night
Opticon18: Developer Night
 
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...
2015-06-10 Ceus by IberianSPC - new options for SharePoint 2016 and Office 36...
 
April 2020 Microsoft 365 Need to Know Webinar
April 2020 Microsoft 365 Need to Know WebinarApril 2020 Microsoft 365 Need to Know Webinar
April 2020 Microsoft 365 Need to Know Webinar
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

data-visulisation-for-agile-analytics-workshop.pptx

  • 2. 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/
  • 5. 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
  • 8. 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)
  • 9. 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
  • 10. How does it works? ▪ It has two main components ▪ The User Interface (UI) ▪ The Server
  • 11. 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
  • 12. The basics ▪ The dashboard has three parts: header, sidebar and body
  • 13. Basic Dashboard ▪ Adding content to the Sidebar
  • 14. Basic Dashboard ▪ Adding content to the Body
  • 15. And the last step ▪ Adding the Header
  • 16. 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
  • 17. All events triggered are in the Server Section
  • 18. And you can link to other files as a way to organise your code better
  • 21. Where to learn more… • R programming https://www.datacamp.com/courses/free-introduction-to-r • Free Shiny Interactive Tutorial https://www.datacamp.com/courses/building-web-applications-in-r-with-shiny • More tricks of Shinydashboard and actions https://rstudio.github.io/shinydashboard/structure.html http://shiny.rstudio.com/gallery/widget-gallery.html • Gallery of plots with code https://plot.ly/r/ • Useful data transformations with Dplyr and Tidyr https://dplyr.tidyverse.org/ https://blog.rstudio.com/2014/07/22/introducing-tidyr/

Editor's Notes

  1. 127.0.0.1 is the IP address your laptop uses for itself (it’s the same as ‘localhost’). Your laptop is hosting a web page (the UI) whose content is controlled by a running R session. When you run an app through RStudio, that R session is also running the server on your laptop. The server responds when you interact with the web page, processing R commands and updating UI objects accordingly. The user interface and the server interact with each other through input and output objects. The user’s interaction with input objects alters parameters in the server’s instructions – instructions for creating output objects shown in the UI. Writing an app requires careful attention to how your input and output objects relate to each other, i.e. knowing what actions will initiate what sections of code to run at what time.