Now it works!#11
Conversation
analysis R script with age distribution histogram
Completed Graphing; have more if you need <3
Got the summary and age distribution working!
|
|
||
| } | ||
| } | ||
|
|
| stop("Invalid value for naOption parameter") | ||
| } | ||
| write.csv(input, paste("country",country,"_alldata.csv"), row.names = F) | ||
|
|
| } | ||
| write.csv(input, paste("country",country,"_alldata.csv"), row.names = F) | ||
|
|
||
| } |
| #Path directory | ||
| setwd("/Users/avivalund/Desktop/Biocomputing/FinalProject/RProject/") | ||
|
|
||
| #Compile; couldnt get source to work so here is the code that would compile the csvs |
There was a problem hiding this comment.
you can use source only if the file is exist in the same directory
|
|
||
| #number of infected or healthy patients; removed ages that were likely errors | ||
| removed_strange_ages<-data[data$age <110,] | ||
| sick<-subset(removed_strange_ages, marker01!=0 | marker02!=0 |marker03!=0 |marker04!=0 |marker05!=0 |marker06!=0 |marker07!=0 |marker08!=0 | marker09!=0 |marker10!=0) |
| theme_bw()+ | ||
| scale_y_continuous(breaks =seq(0,15000,1250)) | ||
| } | ||
|
|
| geom_bar(stat="identity", position="dodge")+ | ||
| xlab("Country") + | ||
| ylab("Marker Abundance")+ | ||
| theme_minimal() No newline at end of file |
There was a problem hiding this comment.
You did not use any support functions in the script -2
| geom_bar(stat="identity", position="dodge")+ | ||
| xlab("Country") + | ||
| ylab("Marker Abundance")+ | ||
| theme_minimal() No newline at end of file |
There was a problem hiding this comment.
Good commenting and efficient code that uses coding concepts that we covered in class – 3.75 points (max is 4)
| @@ -0,0 +1,157 @@ | |||
| #github was very uncooperative, we all did pretty equal work though | |||
| #1)our figures provide good evidence based on the cases per day the the disease originated in country X. | |||
There was a problem hiding this comment.
This is not specific enough. You need to point to the evidence from the graph and say why the cases matter.
-0.5
There was a problem hiding this comment.
Also it's unclear which graph you are referring to
| #github was very uncooperative, we all did pretty equal work though | ||
| #1)our figures provide good evidence based on the cases per day the the disease originated in country X. | ||
| #2)We also determined that a vaccine developed in country Y would have limited uses for country X. | ||
| #The disparity in markers present between the two countries means that the little overlap that doesoccur would not confer good immunity to country X people. |
There was a problem hiding this comment.
Which graph you are referring to?
It is not clear how disparity it is. You need to point out the evidence from the graph
-0.5
No description provided.