Creating a Data Product

Using shiny app

Ruth Akintunde
Data Scientist

How does my shiny app work?

The shiny app published on shinyapps.io

(https://damilolah.shinyapps.io/course_project)

is a simple one paged web application that does two things:

  • Predicts that a certain patient has malaria

  • Shows a drop down list of some datasets in R

Predicts that a certain patient has malaria

  • Allows the user enter the amount of malaria parasite in the blood and then outputs the patient's probabilty of having malaria.

  • Here is the calculation, assuming the user enters 150,000 parasite in the blood per microlitre

malariaRisk <- function(parasite){
  parasite/200000

}
malariaRisk(150000)
## [1] 0.75

The probability of having malaria is 0.75

Shows a drop down list of some datasets in R

  • Allows the user select dataset from the dropdown list.This displays the dataset on the right hand side of the page.
  • When the user then clicks on the 'Download' button, the dataset is downloaded to the user's device.

The end!