KKParker - 12/24/2015
This App is useful because it is an example of the type of analysis and graphing capabilities you can do with R and it is implemented as a Shiny App.
Shiny App: https://kkparker.shinyapps.io/CourseProject
server.R and ui.R Code: https://github.com/kkParker/devdataprod
Chicken picture from Wikipedia: https://en.wikipedia.org/wiki/Poltava_(chicken)
data(ChickWeight) #Records with 3 Study Times (Beg:0, Middle:10, End:21)
df <- ChickWeight[!ChickWeight$Chick %in% c("18", "16", "15", "13", "8","44"),]
df <- df[df$Time %in% c(0, 10, 21),]
df$StudyTime <- ifelse(df$Time == 0, 1, ifelse(df$Time == 10,2,3))
table(df$Diet)
##
## 1 2 3 4
## 45 30 30 27
dfsub <- df[df$Diet==4,]
boxplot(dfsub$weight ~ dfsub$StudyTime, main="Diet 4",
ylim=c(0,400), xlab="Study Timeline (1=beg, 2=middle, 3=end)",
ylab = "Weight of Chick")