Zoe Soren#5
Open
zoeloh wants to merge 5 commits into
Open
Conversation
lyy005
reviewed
Nov 27, 2017
|
|
||
| g1=ggplot(modelOutput,aes(x="time",y="r1"))+geom_line()+geom_line(aes(y="R2"))+geom_line(aes(y="R3"))+geom_line(aes(y="R4"))+geom_line(aes(y="R5")) | ||
| g1+theme_classic() | ||
|
|
Owner
There was a problem hiding this comment.
This code looks good except R2 should be r1.
Also, for plotting, you can add color for example:
ggplot(modelOutput,aes(x="time",y="r1",color="1"))+geom_line()+geom_line(aes(x="time",y="r2",color="50"))
lyy005
reviewed
Nov 27, 2017
| g3=ggplot(modelOutput,aes(x="time",y="N1"))+geom_line()+geom_line(aes(y="N2"))+geom_line(aes(y="N3")) | ||
| g3+theme_classic() | ||
|
|
||
| #We dont know how to get all the plots outputted, but the code is there to make them all. We asked stuart but he didn't help us with this specifically |
Owner
There was a problem hiding this comment.
Do you mean the ggplot command is not working? I added some comments above. Let me know if you still have any questions. In general, you guys did a good job on this question!
lyy005
reviewed
Nov 27, 2017
| prevalence.sort() | ||
|
|
||
| print("B: " + str(listb[i]) + " y: " + str(listy[i])) | ||
| print("Max incidence: " + str(incidence[0])) |
Owner
There was a problem hiding this comment.
Maximum value should be incidence[-1]
lyy005
reviewed
Nov 27, 2017
| bscReproduction = listb[i] * (modelOutput.loc[499, "S"] + modelOutput.loc[499, "I"] + modelOutput.loc[499, "R"]) / listy[i] | ||
| print("Basic reproduction number: " + str(bscReproduction)) | ||
| print("############################################") | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.