Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with log-log plot of recent changes #12

Closed
davidbau opened this issue Mar 28, 2020 · 10 comments
Closed

Experiment with log-log plot of recent changes #12

davidbau opened this issue Mar 28, 2020 · 10 comments

Comments

@davidbau
Copy link
Owner

Idea from here, https://www.youtube.com/watch?v=54XLXg4fYsc

This idea should probably be plotted on a different webpage.

The idea of this plot is to understand whether a locality is still on the exponential domain or if we have succeeded in leaving it (or if we are resuming it). The idea is to plot log(recent changes) on the y axis versus log(less-recent changes) on the x axis. While we're on exponential growth, this will be on the line given by the exponent, but will quickly depart when not.

The youtube video described graphing log(weekly change) vs log(total cumulative) - but maybe having both sides be a delta would be able to show when (e.g., in Japan) exponential growth restarts after the society resumes social behavior too early.

@davidbau
Copy link
Owner Author

davidbau commented Apr 6, 2020

@davidebbo if this is interesting to you, I think it would be cool to see on a per-state basis.

https://gionkunz.github.io/chartist-js/getting-started.html#switching-axis-type

@davidebbo
Copy link
Contributor

Ok, I will look at this next weekend. Why do you think it should go on a different page? Isn't it essentially about plotting the same data in yet a different way?

@davidbau
Copy link
Owner Author

davidbau commented Apr 6, 2020 via email

@davidebbo
Copy link
Contributor

Hoping to look at this as a weekend project. But looking at chartist, I'm not sure how easily it will support this because:

  • It only appears to support log scale on the y axis and not x axis
  • It doesn't seem to support graphing arbitrary points. i.e. here I think we basically have a sequence of arbitrary (x,y) points, instead of the chartist model of passing an array of 'y' value, where 'x' is assumed to be the array index

Or am I looking at this the wrong way? Obviously, there is the option of moving to a different graphing solution, but that's kind of a big move!

@davidbau
Copy link
Owner Author

davidbau commented Apr 10, 2020 via email

@davidebbo
Copy link
Contributor

That sample looks very promising, thanks!

@davidbau
Copy link
Owner Author

Whoa that is so cool!!!!! I have been playing with your PR and it is pretty awesome to be able to put smaller nearby localities on the same plot as South Korea or China or Italy.

image

It very clearly tells a policy story. While it's good to be like S Korea, do not be like Japan.

http://localhost:8000/#/?include=Italy%3BS%20Korea%3BJapan%3BSpain%3BChina&ratio=3%2F5&stat=growth&advanced=1

@davidebbo
Copy link
Contributor

davidebbo commented Apr 11, 2020

Glad it's working well! Have you played with https://aatishb.com/covidtrends/ as well? It's nice that is has the animation over time. OTOH, we have far more flexibility in terms of localities and other tweaks. And nice colors :)

@davidbau
Copy link
Owner Author

davidbau commented Apr 12, 2020 via email

@davidbau
Copy link
Owner Author

Merged and pushed. Thanks again @davidebbo!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants