Giter Club home page Giter Club logo

rki-corona-atlas's Introduction

Corona Atlas

Visit our website or contact us directly via mail.


Interactive map of the international COVID-19 risk areas as designated by the German authorities.

The data is updated periodically from the website of the Robert Koch Institute.

Data scraping is performed on Python with scrapy. The scraper also uses pandas and pycountry.

Map visualization is created with R and generates a map via {rmarkdown}. The map is created using {leaflet}, {giscoR} and some packages included on the tidyverse.

The website uses Chulapa as its Jekyll theme.

Additional resources

Current status

Corona Atlas

Time-lapse

Time-lapse

rki-corona-atlas's People

Contributors

actions-user avatar dependabot[bot] avatar dieghernan avatar egekorkan avatar imgbot[bot] avatar rodrihgh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

egekorkan

rki-corona-atlas's Issues

Conditional og rendering

Currently there are no virus variant zones, so the list of "red countries" is empty. This causes an error in the og image rendering:

Error: Error: The shape level1 only contains empty units.

I have uncommented the og_image rendering in trigger.R at
7cc25dc
to stop the error. Ideally we should first check if the shapes are empty before proceeding further with them

Turkish page

Hi @egekorkan !

You only need to modify three files in the dev branch:

  • assets/data/risk_level_code.csv - Translate the risk levels for the column risk_level_tr
  • assets/data/idioms.csv - Translate the row tr with small phrases used to specify dates, table headers, the list of subregions included/excluded in the risk level, etc.
  • _R/index_tr.Rmd - The main text. Think of it as a Markdown document with some small parts of R code.

I have used the English text as the layout but you can go to https://corona-atlas.de/ and check the German or French version as well to get inspiration.

Once you are done I will integrate the Turkish page in the website and add you to the
Collaborator section. For that you can send me as many links
as you like (LinkedIn, GitHub, your personal website, etc.)

Teşekkürler! 😄

Initial setup

The site is now live with the basic UI. Some things still pending @rodrihgh :

  • Write text content and titles: It should be done in index.Rmd and index.Rmd. Use markdown style.
  • Show Kosovo as independent country (as it is recognized by Germany).
  • Review German translation of the labels in index.Rmd (marked with #RHH) and risk_level_code.csv.
  • Review some risk levels (e.g. Mauritania shows up as no risk area, while it actually is a risk area)
  • Add own "dummy" risk level for Germany (since its current displayed status as "No risk area" is neither for many countries, nor for the RKI itself true).
  • Review new German info on index.Rmd after the implementation of the new scrapper.
  • Update README.md
  • Review and polish _config.yml.
  • Deploy on domain and check links https://www.deadlinkchecker.com/
  • Google Analytics & Search Console to make Google aware we are live.
  • Enforce https:// on GitHub.

Important Note

After each commit, GitHub Actions would automatically rebuild the pages adding an additional commit. When working with git that means that after each pushed commit you would need to pull changes (running time of the action: ~3-4 minutes)

Corona timelapse

Germany has lifted the travel restrictions for all regions upon the mildness of the omicron variant.

Since this renders the site quite uninteresting, I suggest to collect all the risk levels for each country over time so that some nice visualization can be implemented. This can be broken down into two tasks:

  1. The creation of a table with all the risk levels over time, assigned to @rodrihgh
  2. The (probably R-based) visualization, assigned to @dieghernan

My plan for the table is to have it as a CSV with the following structure:

COUNTRY_ISO_CODE_A COUNTRY_ISO_CODE_B ...
date_1 risk_code1.A risk_code1.B ...
date_2 risk_code2.A risk_code2.B ...
... ... ... ...

Nice-to-have Features

@dieghernan

  • Redraw risk areas while dragging (actual behaviour seemingly linked to mouseup ). Leaflet reference

    • Alternatively/complementary, paint the off-chart areas of on-chart regions to avoid glitchy square cutoffs while dragging.
  • Add status-change dates on the tables and the clickable information on the map.

    • German
    • English

Add new languages

Currently working in Polish and French

  • Translate text
  • Integrate text in R code
  • Generate Markdown
  • Build pages
    • The action does not seem to work. /fr, /pl and /es pages should be rendered (the latest one due to some typo correction), but they aren't @dieghernan
  • Add languages to navbar
  • Acknowledge translators in "About"

R plugins not found

R elements are not loading in many browsers. I have checked Firefox's console output and it looks like R plugins cannot be found:

console-export-2021-4-29_10-51-51.txt

German hands up:

  • Die Ressource von "file.js" wurde wegen eines MIME-Typ-Konfliktes ("text/plain") blockiert: The resource von "file.js" has been blocked due to a MIME-type conflict ("test/plain")
  • Laden fehlgeschlagen: Loading failed

Merge Palestina to Israel

RKI is providing now the risk assesment on Palestina as if it were a region of Israel (same as for instance Greenland as a region of Denmark).

The geojson data should be also changed in the following way:

  1. Palestinian territory should be merged to the shapes of Israel
  2. Palestinian entry should be deleted from the data.

See 1b61454 for reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.