outbreak-info / outbreak.info

During outbreaks of emerging diseases such as COVID-19, efficiently collecting, sharing, and integrating data is critical to scientific research. outbreak.info is a resource to aggregate all this information into a single location.
https://outbreak.info/
GNU General Public License v3.0
30 stars 13 forks source link

incidence rates less than 1.0 cause log scale to truncate dates #171

Open gvoysey opened 3 years ago

gvoysey commented 3 years ago

To reproduce:

  1. visit https://outbreak.info/epidemiology?location=METRO_14460&log=false&variable=dead_rolling&xVariable=date&fixedY=false&percapita=true

  2. Observe full x-axis date range through ~30 AUG 2020

  3. toggle display from linear to log scale https://outbreak.info/epidemiology?location=METRO_14460&log=true&variable=dead_rolling&xVariable=date&percapita=true

  4. observe that the x-axis date range has changed and incorrectly truncates on 31 MAY 2020

This is due to the fact that the rate per 100k for a 7-day rolling window death average is ~0.4--0.8 for a while after May and ln(x e 0<x<1) < 0.

I understand not reporting a "negative logarithmic" death rate as being misleading, but clipping the date range is very frustrating when I want to compare outlooks between multiple areas.

gvoysey commented 2 years ago

is there an update on this?

flaneuse commented 2 years ago

@gvoysey thanks for enquiring. Unfortunately, we've been focusing on the SARS-CoV-2 Variant Reports section of outbreak.info over the past year and haven't been able to return to this issue.