DateListLogPlot and GeoBubbleChart of COVID-19 cases for each administrative division in Spain
I created this notebook to plot the number of COVID-19 cases reported daily by the Spanish Ministry of Health: covid19.isciii.es
In[]:=
raw=Import["https://covid19.isciii.es/resources/serie_historica_acumulados.csv"];
CSV header:
In[]:=
raw[[1]]
Out[]=
{CCAA Codigo ISO,Fecha,Casos,Hospitalizados,UCI,Fallecidos}
There are 19 administrative regions including Catalonia:
In[]:=
ccaa=raw[[2;;20,1]]
Out[]=
{AN,AR,AS,IB,CN,CB,CM,CL,CT,CE,VC,EX,GA,MD,ME,MC,NC,PV,RI}
In[]:=
names={"AN""Andalusia","AR""Aragon","AS""Asturias",​​"IB""Balearic Islands","CN""Canary Islands",​​"CB""Cantabria","CM""Castile La Mancha","CL""Castile And Leon",​​"CT""Catalonia","CE""Ceuta","VC""Valencia","EX""Extremadura",​​"GA""Galicia","MD""Madrid","ME""Melilla","MC""Murcia",​​"NC""Navarra","PV""Basque Country","RI""La Rioja"};
In[]:=
divisions="AN"
Andalusia, Spain
ADMINISTRATIVE DIVISION
,"AR"
Aragon, Spain
ADMINISTRATIVE DIVISION
,"AS"
Asturias, Spain
ADMINISTRATIVE DIVISION
,​​"IB"
Balearic Islands, Spain
ADMINISTRATIVE DIVISION
,"CN"
Canary Islands, Spain
ADMINISTRATIVE DIVISION
,​​"CB"
Cantabria, Spain
ADMINISTRATIVE DIVISION
,"CM"
Castile-La Mancha, Spain
ADMINISTRATIVE DIVISION
,"CL"
Castile and Leon, Spain
ADMINISTRATIVE DIVISION
,​​"CT"
Catalonia, Spain
ADMINISTRATIVE DIVISION
,"CE"
Ceuta, Spain
ADMINISTRATIVE DIVISION
,"VC"
Valencia, Spain
ADMINISTRATIVE DIVISION
,"EX"
Extremadura, Spain
ADMINISTRATIVE DIVISION
,​​"GA"
Galicia, Spain
ADMINISTRATIVE DIVISION
,"MD"
Madrid, Spain
ADMINISTRATIVE DIVISION
,"ME"
Melilla, Spain
ADMINISTRATIVE DIVISION
,"MC"
Murcia, Spain
ADMINISTRATIVE DIVISION
,​​"NC"
Navarra, Spain
ADMINISTRATIVE DIVISION
,"PV"
Basque Country, Spain
ADMINISTRATIVE DIVISION
,"RI"
La Rioja, Spain
ADMINISTRATIVE DIVISION
;
In[]:=
dates=DateObject[{#,{"Day","Month","Year"}}]&/@raw[[2;;-2;;19,2]]
Out[]=

Thu 20 Feb 2020 00:00:00GMT+1.
,
Fri 21 Feb 2020 00:00:00GMT+1.
,
Sat 22 Feb 2020 00:00:00GMT+1.
,
Sun 23 Feb 2020 00:00:00GMT+1.
,
Mon 24 Feb 2020 00:00:00GMT+1.
,
Tue 25 Feb 2020 00:00:00GMT+1.
,
Wed 26 Feb 2020 00:00:00GMT+1.
,
Thu 27 Feb 2020 00:00:00GMT+1.
,
Fri 28 Feb 2020 00:00:00GMT+1.
,
Sat 29 Feb 2020 00:00:00GMT+1.
,
Sun 1 Mar 2020 00:00:00GMT+1.
,
Mon 2 Mar 2020 00:00:00GMT+1.
,
Tue 3 Mar 2020 00:00:00GMT+1.
,
Wed 4 Mar 2020 00:00:00GMT+1.
,
Thu 5 Mar 2020 00:00:00GMT+1.
,
Fri 6 Mar 2020 00:00:00GMT+1.
,
Sat 7 Mar 2020 00:00:00GMT+1.
,
Sun 8 Mar 2020 00:00:00GMT+1.
,
Mon 9 Mar 2020 00:00:00GMT+1.
,
Tue 10 Mar 2020 00:00:00GMT+1.
,
Wed 11 Mar 2020 00:00:00GMT+1.
,
Thu 12 Mar 2020 00:00:00GMT+1.
,
Fri 13 Mar 2020 00:00:00GMT+1.
,
Sat 14 Mar 2020 00:00:00GMT+1.
,
Sun 15 Mar 2020 00:00:00GMT+1.
,
Mon 16 Mar 2020 00:00:00GMT+1.
,
Tue 17 Mar 2020 00:00:00GMT+1.
,
Wed 18 Mar 2020 00:00:00GMT+1.
,
Thu 19 Mar 2020 00:00:00GMT+1.
,
Fri 20 Mar 2020 00:00:00GMT+1.
,
Sat 21 Mar 2020 00:00:00GMT+1.
,
Sun 22 Mar 2020 00:00:00GMT+1.
,
Mon 23 Mar 2020 00:00:00GMT+1.
,
Tue 24 Mar 2020 00:00:00GMT+1.
,
Wed 25 Mar 2020 00:00:00GMT+1.

Time series and Spain’s total cases:
In[]:=
series=Transpose/@Transpose[Partition[raw[[2;;-2,3;;]],19]];​​totals=Replace[Total[Transpose/@Transpose[Partition[raw[[2;;-2,3;;]],19]]],""0,All];

DateListLogPlot from March 10

In[]:=
Labeled​​GraphicsGrid[​​Partition[​​Prepend[​​MapIndexed[​​Labeled[​​DateListLogPlot[#1,{{2020,3,12},Automatic,"Day"},​​GridLines{dates[[22;;]],Automatic},​​PlotTheme"Detailed",​​ImageSize300],​​Style[names[[First[#2],2]],"Subtitle"],​​Bottom]&,​​series[[All,All,22;;]]]​​,​​Labeled[​​DateListLogPlot[​​totals[[All,20;;]]​​,{{2020,3,12},Automatic,"Day"},​​PlotTheme"Detailed",​​ImageSize300],​​Style["Spain","Subtitle"],​​Bottom]]​​,4],​​ImageSize1200,​​Spacings{0,-60}],​​Column​​Style["COVID-19 cases for each administrative division in Spain (14 days)","Subtitle"],​​StyleRow​​RasterizeGraphics
,Thickness[.1],Line[{{0,0},{.2,0}}],PlotRange{Automatic,{-.1,.1}},ImageSize30,​​" Cases ", ​​RasterizeGraphics
,Thickness[.1],Line[{{0,0},{.2,0}}],PlotRange{Automatic,{-.1,.1}},ImageSize30, ​​" Hospitalized ", ​​RasterizeGraphics
,Thickness[.1],Line[{{0,0},{.2,0}}],PlotRange{Automatic,{-.1,.1}},ImageSize30, ​​" Critical ",​​RasterizeGraphics
,Thickness[.1],Line[{{0,0},{.2,0}}],PlotRange{Automatic,{-.1,.1}},ImageSize30,​​" Deaths",18,"Subtitle",​​AlignmentCenter,​​Style["DateListLogPlots Powered by WOLFRAM Infographic by @bernatree Data Source: covid19.isciii.es",​​"Subtitle",18],​​{Top,Bottom}
Out[]=
COVID-19 cases for each administrative division in Spain (14 days)
Cases
Hospitalized
Critical
Deaths
DateListLogPlots Powered by WOLFRAM Infographic by @bernatree Data Source: covid19.isciii.es

GeoBubbleChart

Iberian Peninsula Map (excluding Canary Islands, Ceuta and Melilla)

Canary Island:

Joining both maps: coronaMap[nday_]