Areddy
Aug 9th 2017
Image source: https://kaggle2.blob.core.windows.net/competitions/kaggle/3136/logos/front_page.png
This Shiny application is my submission for the assignment of the course “Developing Data Products”, part of the Data Science Specialization offered by the Johns Hopkins University on Coursera. It is an interactive web based application, frameworked in R, for fetching information on the sex, age, and passenger class of the survivors of the RMS Titanic which sunk on April 15, 1912.
The dataset, found on Kaggle.com, https://www.kaggle.com/c/titanic/data, contains 891 records with several identification characteristic variables, and it is popular for many enthusiastic neophytes in machine learning.
library(ggplot2) was used for the plotting. Here is the code for a static view of the default plot that is rendered on the web app:
library(ggplot2)
trainData <- read.csv("train.csv")
g <- ggplot(trainData, aes(Age, Pclass))
g + geom_point(aes(color=Sex)) + facet_grid(Survived ~.)
For reproducing this project locally on your computer, you would need to follow these steps:
Install the necessary packages to run RStudio’s Shiny server locally, as instructed here: http://shiny.rstudio.com/articles/shinyapps.html
Run the following command in RStudio:
runGitHub(“MyShinyApp”, “areddyus")