Difference between revisions of "COVID-19"
Line 93: | Line 93: | ||
<body> | <body> | ||
<div id="chart_div_1"></div> | <div id="chart_div_1"></div> | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | <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(drawChart); | ||
+ | |||
+ | function drawChart() { | ||
+ | var data = google.visualization.arrayToDataTable([ | ||
+ | ['Total cases', 'Daily cases'], | ||
+ | //[1, 1], | ||
+ | //[1, 0], | ||
+ | //[5, 4], | ||
+ | //[5, 0], | ||
+ | //[6, 1], | ||
+ | //[18, 12], | ||
+ | //[47, 29], | ||
+ | //[98, 51], | ||
+ | [192, 94], | ||
+ | [359, 167], | ||
+ | [670, 311], | ||
+ | [947, 277], | ||
+ | [1236, 289], | ||
+ | [ 1529, 293], | ||
+ | [ 1872, 343], | ||
+ | [ 2433, 561], | ||
+ | [ 3629, 1196], | ||
+ | [ 5698, 2069], | ||
+ | [ 7402, 1704], | ||
+ | [ 9217, 1815], | ||
+ | [ 10827, 1410], | ||
+ | [ 13531, 2904], | ||
+ | [ 15679, 2148], | ||
+ | [ 18135, 2456], | ||
+ | [ 20921, 2786], | ||
+ | [23934, 3013], | ||
+ | [27069, 3135], | ||
+ | [30217, 3148], | ||
+ | [34109, 3892], | ||
+ | [38226, 4117], | ||
+ | [42282, 4056], | ||
+ | [47029, 4747], | ||
+ | [52167, 5138], | ||
+ | [56956, 4789], | ||
+ | [61049, 4093], | ||
+ | [65111, 4062], | ||
+ | [69392, 4281], | ||
+ | [74193, 4801], | ||
+ | [78546, 4353], | ||
+ | [82329, 3783], | ||
+ | [86306, 3977], | ||
+ | [90980, 4674], | ||
+ | [95591, 4611], | ||
+ | [98674, 3083], | ||
+ | [101790, 3116], | ||
+ | ]); | ||
+ | |||
+ | var options = { | ||
+ | title: 'Total cases vs. Daily cases (log-log)', | ||
+ | fontName: 'Old Standard TT', | ||
+ | color: '#982F00', | ||
+ | series:{ | ||
+ | 0: { | ||
+ | color: '#982F00', | ||
+ | pointSize: 2, | ||
+ | },}, | ||
+ | hAxis: {title: 'Total cases', scaleType: 'log'}, | ||
+ | vAxis: {title: 'Daily cases', scaleType: 'log'}, | ||
+ | legend: 'none', | ||
+ | 'height':400, | ||
+ | }; | ||
+ | |||
+ | var chart = new google.visualization.ScatterChart(document.getElementById('chart_div_2')); | ||
+ | |||
+ | chart.draw(data, options); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | |||
+ | <body> | ||
+ | <div id="chart_div_2"></div> | ||
</body> | </body> | ||
</html> | </html> |
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