Difference between revisions of "COVID-19"
(→Data Sources (pandemic)) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <html> | ||
+ | <head> | ||
+ | <!--Load the AJAX API--> | ||
+ | <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | google.charts.load('current', {'packages':['corechart']}); | ||
+ | google.charts.setOnLoadCallback(drawVisualization); | ||
+ | |||
+ | function drawVisualization() { | ||
+ | // Some raw data (not necessarily accurate) | ||
+ | var data = google.visualization.arrayToDataTable([ | ||
+ | ['Day', 'Cumulative', 'Daily'], | ||
+ | // Day 1 = March 10, 2020 | ||
+ | [1, 1, 1], | ||
+ | [2, 1, 0], | ||
+ | [3, 5, 4], | ||
+ | [4, 5, 0], | ||
+ | [5, 6, 1], | ||
+ | [6, 18, 12], | ||
+ | [7, 47, 29], | ||
+ | [8, 98, 51], | ||
+ | [9, 192, 94], | ||
+ | [10, 359, 167], | ||
+ | [11, 670, 311], | ||
+ | [12, 947, 277], | ||
+ | [13, 1236, 289], | ||
+ | [14, 1529, 293], | ||
+ | [15, 1872, 343], | ||
+ | [16, 2433, 561], | ||
+ | [17, 3629, 1196], | ||
+ | [18, 5698, 2069], | ||
+ | [19, 7402, 1704], | ||
+ | [20, 9217, 1815], | ||
+ | [21, 10827, 1410], | ||
+ | [22, 13531, 2904], | ||
+ | [23, 15679, 2148], | ||
+ | [24, 18135, 2456], | ||
+ | [25, 20921, 2786], | ||
+ | [26, 23934, 3013], | ||
+ | [27, 27069, 3135], | ||
+ | [28, 30217, 3148], | ||
+ | [29, 34109, 3892], | ||
+ | [30, 38226, 4117], | ||
+ | [31, 42282, 4056], | ||
+ | [32, 47029, 4747], | ||
+ | [33, 52167, 5138], | ||
+ | [34, 56956, 4789], | ||
+ | [35, 61049, 4093], | ||
+ | [36, 65111, 4062], | ||
+ | [37, 69392, 4281], | ||
+ | [38, 74193, 4801], | ||
+ | [39, 78546, 4353], | ||
+ | [40, 82329, 3783], | ||
+ | [41, 86306, 3977], | ||
+ | [42, 90980, 4674], | ||
+ | [43, 95591, 4611], | ||
+ | [44, 98674, 3083], | ||
+ | [45, 101790, 3116], | ||
+ | ]); | ||
+ | |||
+ | // Set chart options | ||
+ | var options = { | ||
+ | title : 'COVID-19 Cases in Turkey', | ||
+ | fontName: 'Old Standard TT', | ||
+ | vAxis: { | ||
+ | title: 'Cases', | ||
+ | // maxValue: '20000', | ||
+ | // scaleType: 'log', | ||
+ | }, | ||
+ | hAxis: {title: 'Day'}, | ||
+ | seriesType: 'bars', | ||
+ | series:{ | ||
+ | 0: {type: 'line', | ||
+ | color: '#982F00', | ||
+ | lineWidth: 3, | ||
+ | // pointSize: 4, | ||
+ | }, | ||
+ | 1: {type: 'bars', color: 'black'},}, | ||
+ | // 'width':600, | ||
+ | 'height':400, | ||
+ | // crosshair: { trigger: 'both', opacity: 0.5 }, | ||
+ | // trendlines: { 1: {} } // Draw a trendline for data series 1, | ||
+ | }; | ||
+ | |||
+ | var chart = new google.visualization.ComboChart(document.getElementById('chart_div_1')); | ||
+ | chart.draw(data, options); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | |||
+ | <body> | ||
+ | <div id="chart_div_1"></div> | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
==SARS-CoV-2, The Virus== | ==SARS-CoV-2, The Virus== | ||
Inside the Coronavirus Genome by J. Corum and C. Zimmer, April 3, 2020 — NY Times
— The genome of the new coronavirus is less than 30,000 letters long, while the human genome is over 3 billion. Scientists have identified genes for as many as 29 proteins, which carry out a range of jobs from making copies of the coronavirus to suppressing the body’s immune responses.
Genetic Data for SARS-CoV-2, April 12, 2020 — Wolfram
— This interactive dashboard displays recent information on the COVID-19 (coronavirus) pandemic, patient symptoms and outcomes, and the genetic makeup of the novel coronavirus (SARS-CoV-2).
How do sources compare? by H. Ritchie et al., March 19, 2020 — Our World in Data
— There are three key sources providing regular updates of COVID-19 cases and deaths globally and by country.
NOTE: Script for downloading the CSV file into R
1 #these libraries need to be loaded
2 library(utils)
3
4 #read the Dataset sheet into “R”. The dataset will be called "data".
5 data <- read.csv("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv", na.strings = "", fileEncoding = "UTF-8-BOM")
hkilter.com by H. K. Ilter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
© 2020 H. K. Ilter