Developing Data Products: Shiny App Presentation?========================================================author: M.Daglidate: September 10, 2015
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.
-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 with a mean half-life of appoximately 4.5 hours.
This slide shows how the application uses the ggplot2 package to graph the Indometh data.
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)")
This slide shows the App user interface.
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.