Developing Data Products: Shiny App Presentation?========================================================author: M.Daglidate: September 10, 2015

Introduction

  • This Shiny Application enables the user to explore the R libraries' Indometh data set.

  • The Indometh data set contains data tracking blood indomethacin concentrations for 6 subjects after an IV injection.

  • Eleven blood samples are obtained for each subject are obtained over a period of 8 hours for a total of 66 samples.

What is Indomethacin?

-Indomethacin is a nonsteroidal antiinflammatory drug which inhibits the production of prostaglandins.

-It is commonly used as a prescription medication to reduce fever, pain, stiffness and swelling.

-It is absorbed very quickly after oral administration and is excreted in humans in bile and urine.

-Its blood concentration-time curve can often be modelled as a single or double exponential decay curve. From this exponential curve the half life of Indomethacin in the blood can be obtained.

Slide With GGPLOT Code

This slide shows how the application uses the ggplot2 package to graph the blood concentration time curves for subjects.

library(ggplot2)
ggplot(Indometh, aes(x=time, y=conc, color=Subject))+geom_line(size=1.5)+geom_point(size=3)+xlab("Time post injection (hours)")+ylab("Concentration (mcg/ml)")

plot of chunk unnamed-chunk-1

Display of Shiny APP User Interface

This slide shows the App user interface.

alt text

The toggles in the Graph Options sidebar tab are used to graph individual(s) subject data in the Mainpanel. If more than one subject is selected the application will also calculate and graph the mean values. The time period of interest can be changed using the slider. Data for individual points can be obtained by clicking with the arrow on the point of interest. This application will also compute the half-life based on a single exponential fit to the mean of the selected subject(s) data for the specified time range.