Shiny Apps for datascience.ibm.com
This shiny app shows how the IBM Data Science Experience was leveraged to show the results of a car accident predictive model in New York City. The model was trained using historical data of car accidents and IBM weather's data. The weather conditions per zip code were used as features to train a logistic regression model that predicts the probability of a car accident at the zip code level.
- Download the predict-accidents zip file to your laptop (no need to unzip!)
- Open RStudio in Data Science Experience from the left navigation bar
- On the bottom right panel of RStudio, under "Files", click on the "Upload" option
- Click on "Choose File" and browse for the "predict-accidents.zip" on your laptop (dowloaded on the first step)
- Click on the "predict-accidents" directory
- Open the server.R file by clicking on it in RStudio
- On the top left panel, open the shiny app by clicking on the "Run App" button
You should get a really cool map that shows the probabilities of car accidents per zip code. On the right panel of the app you can interact with the app by choosing the desired date and time of interest. Click on the circles to get the zip code and the probability.
For questions, please contact
- Jorge Castanon, jorgecasta@us.ibm.com
- Jihyoung Kim, jihyoungkim@us.ibm.com
This shiny app shows how the IBM Data Science Experience was leveraged to show an interactive map to analyze flight delays. The app can be used to explore the average flight delays (in minutes) for each airport. The user can interact with the app by choosing the month and year to be explored. In addition, the user can click on airport to get the airport name, code, state and city. The size of the circles depends on the volume of flights for each airport.
- Download the flights zip file to your laptop (no need to unzip!)
- Open RStudio in Data Science Experience from the left navigation bar
- On the bottom right panel of RStudio, under "Files", click on the "Upload" option
- Click on "Choose File" and browse for the "flights.zip" on your laptop (dowloaded on the first step)
- Click on the "flights" directory
- Open the server.R file by clicking on it in RStudio
- On the top left panel, open the shiny app by clicking on the "Run App" button
You should get a really cool map that shows the average flight delay (in minutes) for each airport. On the right panel of the app you can interact with the app by choosing the desired year and month of interest. Click on the circles to get the airport name and code, as well as the average delay of arriving flights.
For questions, please contact
- Jorge Castanon, jorgecasta@us.ibm.com
- Oscar Lara, oscar.lara.yejas@us.ibm.com
- Jihyoung Kim, jihyoungkim@us.ibm.com
This shiny app shows how the IBM Data Science Experience offering was leveraged to model and understand energy usage within under-served communities in NYC. Come see how these models led to previously undiscovered insight that helped energy analysts better target their clean energy project offers among the communities involved.
- Open RStudio in Data Science Experience from the left navigation bar
- Create a new R Markdown Document - note you may be required to download some R packages at this time
- Copy the raw R Markdown from here
- Replace the default content in the new R Markdown file by pasting the code in the file
- Select lines 21 - 65 and execute (This is a one time set up to install all necessary packages)
- Click the Knit button with the ball of yarn next to it
- Ignore the error on the pop-up and click the button "Open in Browser" to see the app in a web browser
- Open the app in a browser to interact with it, share the link with anyone
For questions, please contact
- Jorge Castanon, jorgecasta@us.ibm.com
- Greg Filla, gfilla@us.ibm.com