<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="http://tom-e-white.com/datavision/feed.xml" rel="self" type="application/atom+xml" /><link href="http://tom-e-white.com/datavision/" rel="alternate" type="text/html" /><updated>2023-01-26T08:56:40+00:00</updated><id>http://tom-e-white.com/datavision/feed.xml</id><title type="html">Datavision 2020</title><subtitle>A weekly data visualization in 2020.</subtitle><entry><title type="html">53. Metadatavision</title><link href="http://tom-e-white.com/datavision/53-metadatavision.html" rel="alternate" type="text/html" title="53. Metadatavision" /><published>2020-12-30T00:00:00+00:00</published><updated>2020-12-30T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/53-metadatavision</id><content type="html" xml:base="http://tom-e-white.com/datavision/53-metadatavision.html">&lt;p&gt;A year ago I came up with the idea of creating one data visualization per week in 2020. I wanted to learn to use some new tools, and to put into practice some of the techniques I’d read about in Claus Wilke’s book, &lt;a href=&quot;https://clauswilke.com/dataviz/&quot;&gt;Fundamentals of Data Visualization&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/&quot;&gt;52 weeks of visualizations&lt;/a&gt; later, what did I learn? Here are some summary charts:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/53-metadatavision.png&quot; alt=&quot;Metadatavision&quot; /&gt;&lt;/p&gt;

&lt;p&gt;As you can see from the bar chart of visualization libraries, I grew to love d3 and it quickly became my “go to” tool. It allows you to do almost anything, but requires a lot of work. I would often use ggplot2 to do a quick analysis, then turn to d3 to present the data in exactly the way I wanted to - particularly if it involved some kind of interaction or animation. ggplot2 is great, it’s much easier to generate an off-the-shelf chart - so I used this a lot too, and spent some time trying to improve on the default presentation (shout out to &lt;a href=&quot;https://cran.r-project.org/web/packages/cowplot/vignettes/introduction.html&quot;&gt;cowplot&lt;/a&gt; here, also from Claus Wilke, and used in the charts above). Vega-lite is in third place - I didn’t reach for it as much, but I can see it becoming a useful output from other tools (like ggvis and Altair).&lt;/p&gt;

&lt;p&gt;The second bar chart shows the distribution of the type of visualization, divided into families (irrespective of the tool used to produce it). The families are from Andy Kirk’s handy &lt;a href=&quot;https://chartmaker.visualisingdata.com/&quot;&gt;Chartmaker Directory&lt;/a&gt; (the same ones appear in his &lt;a href=&quot;https://www.visualisingdata.com/book/&quot;&gt;book&lt;/a&gt; too), and are intended to capture the primary role of each chart.&lt;/p&gt;

&lt;p&gt;Most of the visualizations have a temporal dimension (how does &lt;em&gt;x&lt;/em&gt; change over time?). I became aware of my bias here, and consciously tried to come up with visualizations that did not have a time dimension (and in fact most of my favourites were not time plots, see below). I did produce a large variety of chart types though (not shown on the chart, but the visualization type is listed on the page for each &lt;a href=&quot;http://tom-e-white.com/datavision/&quot;&gt;visualization&lt;/a&gt;) - something else that I consciously tried to do.&lt;/p&gt;

&lt;p&gt;The third chart shows the distribution of the size of each dataset. The dataset sizes ranged over 9 orders of magnitude - from a few hundred bytes to tens of gigabytes. I didn’t pay much attention to this - my prime interest was finding interesting ways of presenting interesting data. There was no correlation in my mind between dataset size and how interesting it was - I was certainly not trying to visualize large datasets (I was quite happy to do so, but never needed more processing power than a single machine to do so).&lt;/p&gt;

&lt;p&gt;The biggest challenge was finding interesting datasets, then turning them into a form suitable for visualization. This “data cleaning” step is notorious amongst data scientists as being slow and hard to automate. I didn’t have any special tricks here: I generally just wrote a Python script to do any pre-processing I needed. I’ve published all of the code on &lt;a href=&quot;https://github.com/tomwhite/datavision-code&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My five favourite visualizations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the order I made them:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/11-hamilton-songs.html&quot;&gt;&lt;strong&gt;Hamilton songs (Week 11)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was the first dense, interactive d3 visualization I did, and was when I really “got” d3. I like the fact you can spend time exploring the dataset with this visualization.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/11-hamilton-songs-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/11-hamilton-songs.svg&quot; alt=&quot;Hamilton songs&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/12-programming-language-popularity.html&quot;&gt;&lt;strong&gt;Programming language popularity (week 12)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is bright and fun - and doesn’t look like it was done in ggplot2.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/12-programming-language-popularity.png&quot; alt=&quot;Programming language popularity&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/21-voronoi-football.html&quot;&gt;&lt;strong&gt;Voronoi football (week 21)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not the first animation I did (that was &lt;a href=&quot;http://tom-e-white.com/datavision/14-lots-of-lotties.html&quot;&gt;Lots of Lotties&lt;/a&gt; in week 14), but possibly the most mesmerising.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/21-voronoi-football-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/21-voronoi-football.svg&quot; alt=&quot;Voronoi football&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/25-bach-charts.html&quot;&gt;&lt;strong&gt;Bach charts (week 25)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A piano keyboard is basically a bar chart.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/25-bach-charts-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/25-bach-charts.svg&quot; alt=&quot;Bach notes&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/37-tooth-cavities.html&quot;&gt;&lt;strong&gt;Tooth cavities (week 37)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I like the simplicity of this data visualization - it conveys the data very intuitively (and my dentist approves).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/37-tooth-cavities-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/37-tooth-cavities.png&quot; alt=&quot;Tooth cavities&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: bar charts and beeswarm plot&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;http://tom-e-white.com/datavision/&quot;&gt;Datavision&lt;/a&gt;, CSV, 3.5 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://ggplot2.tidyverse.org/index.html&quot;&gt;ggplot2&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/53-metadatavision&quot;&gt;code&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><category term="R" /><category term="ggplot2" /><summary type="html">A year ago I came up with the idea of creating one data visualization per week in 2020. I wanted to learn to use some new tools, and to put into practice some of the techniques I’d read about in Claus Wilke’s book, Fundamentals of Data Visualization.</summary></entry><entry><title type="html">52. Food banks</title><link href="http://tom-e-white.com/datavision/52-foodbanks.html" rel="alternate" type="text/html" title="52. Food banks" /><published>2020-12-23T00:00:00+00:00</published><updated>2020-12-23T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/52-foodbanks</id><content type="html" xml:base="http://tom-e-white.com/datavision/52-foodbanks.html">&lt;p&gt;The number of &lt;a href=&quot;https://www.trusselltrust.org/get-help/emergency-food/food-parcel/&quot;&gt;food parcels&lt;/a&gt; distributed by food banks in the UK has grown rapidly over the last decade. The following visualization shows data from the Trussell Trust (so it doesn’t include all food banks in the UK):&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/52-foodbanks.png&quot; alt=&quot;Food banks&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There is some evidence that increasing usage of food banks is &lt;a href=&quot;https://en.wikipedia.org/wiki/United_Kingdom_government_austerity_programme#Food_banks&quot;&gt;linked to austerity&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The latest data is up to the end of March 2020, so it doesn’t include the impact of the coronavirus pandemic,
which is &lt;a href=&quot;https://www.trusselltrust.org/2020/09/14/new-report-reveals-how-coronavirus-has-affected-food-bank-use/&quot;&gt;forecast to result in a 61% increase in food parcels needed across the UK&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This time of year is particularly difficult for users of food banks, so please consider &lt;a href=&quot;https://www.trusselltrust.org/make-a-donation/&quot;&gt;donating&lt;/a&gt; if you can. Thank you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: bar chart&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.trusselltrust.org/news-and-blog/latest-stats/end-year-stats/#total&quot;&gt;Trussell Trust&lt;/a&gt; (and this &lt;a href=&quot;http://www.trusselltrust.org/wp-content/uploads/sites/2/2015/06/BIGGEST-EVER-INCREASE-IN-UK-FOODBANK-USE.pdf&quot;&gt;PDF&lt;/a&gt; for earlier years), CSV, 236 B.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://ggplot2.tidyverse.org/index.html&quot;&gt;ggplot2&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/52-foodbanks&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;: &lt;a href=&quot;https://commonslibrary.parliament.uk/research-briefings/cbp-8585/&quot;&gt;Food Banks in the UK&lt;/a&gt;, a House of Commons Library Research Briefing&lt;/p&gt;</content><author><name></name></author><category term="R" /><category term="ggplot2" /><summary type="html">The number of food parcels distributed by food banks in the UK has grown rapidly over the last decade. The following visualization shows data from the Trussell Trust (so it doesn’t include all food banks in the UK):</summary></entry><entry><title type="html">51. Maximum daily temperatures in central England since 1878</title><link href="http://tom-e-white.com/datavision/51-max-daily-temps-in-england.html" rel="alternate" type="text/html" title="51. Maximum daily temperatures in central England since 1878" /><published>2020-12-16T00:00:00+00:00</published><updated>2020-12-16T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/51-max-daily-temps-in-england</id><content type="html" xml:base="http://tom-e-white.com/datavision/51-max-daily-temps-in-england.html">&lt;p&gt;The Met Office has an amazing dataset of the mean daily temperature recorded in central England that goes back to 1772. The mean monthly data goes back to 1659, and is &lt;a href=&quot;https://www.metoffice.gov.uk/hadobs/hadcet/&quot;&gt;“the longest available instrumental record of temperature in the world”&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This heatmap is a visualization of &lt;em&gt;maximum&lt;/em&gt; daily temperatures that goes back to 1878.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/51-max-daily-temps-in-england-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/51-max-daily-temps-in-england.png&quot; alt=&quot;Maximum daily temperatures in central England since 1878&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the &lt;a href=&quot;http://tom-e-white.com/datavision/51-max-daily-temps-in-england-interactive.html&quot;&gt;interactive version&lt;/a&gt; you can hover to see the recorded maximum temperature on any particular day.&lt;/p&gt;

&lt;p&gt;You can see heatwaves quite clearly - the one in the summer of 1976, for example. You can make out the cold winter of 1962-63 too, where the maximum temperature hovered either side of freezing for weeks.&lt;/p&gt;

&lt;p&gt;This isn’t the best visualization to see warming - the graph on the &lt;a href=&quot;https://www.metoffice.gov.uk/hadobs/hadcet/&quot;&gt;Met Office page for this dataset&lt;/a&gt;, and &lt;a href=&quot;https://gist.github.com/cavedave/9e94d345ebb19eec3b47228dd60c62dd&quot;&gt;this plot by cavedave&lt;/a&gt; both show the warming trend over the last few decades.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: heatmap&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.metoffice.gov.uk/hadobs/hadcet/&quot;&gt;Met Office Hadley Centre observations datasets&lt;/a&gt;, space delimited text, 350 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/51-max-daily-temps-in-england&quot;&gt;code&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><category term="d3" /><summary type="html">The Met Office has an amazing dataset of the mean daily temperature recorded in central England that goes back to 1772. The mean monthly data goes back to 1659, and is “the longest available instrumental record of temperature in the world”.</summary></entry><entry><title type="html">50. Moving house</title><link href="http://tom-e-white.com/datavision/50-moving-house.html" rel="alternate" type="text/html" title="50. Moving house" /><published>2020-12-09T00:00:00+00:00</published><updated>2020-12-09T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/50-moving-house</id><content type="html" xml:base="http://tom-e-white.com/datavision/50-moving-house.html">&lt;p&gt;We moved house today. (Yay!)&lt;/p&gt;

&lt;p&gt;Of the 23.5 million households in England in 2018-19, a little over 2 million of them moved house during that year. That’s around 8.7% of households that move in a given year.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/50-moving-house-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/50-moving-house.png&quot; alt=&quot;Moving house&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on the image to see the animation. Each dot corresponds to ten thousand households.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: animated dots&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.gov.uk/government/statistics/english-housing-survey-2018-to-2019-headline-report&quot;&gt;English Housing Survey 2018 to 2019&lt;/a&gt;, XLSX, 447 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt; and &lt;a href=&quot;https://engineering.atspotify.com/2018/03/02/introducing-coordinator-a-new-open-source-project-made-at-spotify-to-inject-some-whimsy-into-data-visualizations/&quot;&gt;Coördinator&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/50-moving-house&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;: &lt;a href=&quot;http://tom-e-white.com/datavision/43-passive-houses-in-the-uk.html&quot;&gt;Passive houses in the UK&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><category term="d3" /><category term="Coördinator" /><summary type="html">We moved house today. (Yay!)</summary></entry><entry><title type="html">49. Animated gzip</title><link href="http://tom-e-white.com/datavision/49-animated-gzip.html" rel="alternate" type="text/html" title="49. Animated gzip" /><published>2020-12-02T00:00:00+00:00</published><updated>2020-12-02T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/49-animated-gzip</id><content type="html" xml:base="http://tom-e-white.com/datavision/49-animated-gzip.html">&lt;p&gt;&lt;a href=&quot;https://www.gnu.org/software/gzip/&quot;&gt;Gzip&lt;/a&gt; is a program for compressing files. One of the techniques used for compression is to look for duplicate parts of the file: if a particular sequence of characters has been seen before, then it can be replaced with a reference pointing back to the previous occurrence so it doesn’t have to be written in full again.&lt;/p&gt;

&lt;p&gt;This technique (which is a part of the &lt;a href=&quot;https://en.wikipedia.org/wiki/DEFLATE&quot;&gt;DEFLATE&lt;/a&gt; algorithm) is very effective since many files have repetitive parts - text files have many repeated words for example.&lt;/p&gt;

&lt;p&gt;The following visualization shows the gzip representation of a &lt;a href=&quot;https://raw.githubusercontent.com/tomwhite/datavision/gh-pages/_posts/2020-03-11-11-hamilton-songs.md&quot;&gt;Markdown file&lt;/a&gt; from this blog. (Markdown is a simple text-based format for writing structured text.)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/49-animated-gzip-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/49-animated-gzip.png&quot; alt=&quot;Animated gzip&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/49-animated-gzip-interactive.html&quot;&gt;Interactive version.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each character in the text file is coloured according to how well it is compressed in the gzip file. Blue indicates better compression (the darker the better), white means that there is no effective compression (i.e. each character takes 8 bits), and orange indicates worse compression (than no compression). (This compression is achieved by a &lt;a href=&quot;https://en.wikipedia.org/wiki/DEFLATE#Bit_reduction&quot;&gt;separate part of DEFLATE&lt;/a&gt; that does bit compression on individual characters, not the duplicate sequences mentioned above.)&lt;/p&gt;

&lt;p&gt;So the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;H&lt;/code&gt; in the first line, for example, is coloured orange, and takes 9 bits to encode it (you can see this by hovering over the character in the &lt;a href=&quot;http://tom-e-white.com/datavision/49-animated-gzip-interactive.html&quot;&gt;interactive version&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;You may wonder why &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;H&lt;/code&gt; hasn’t been compressed well by the algorithm. It’s simply because it doesn’t appear very often in the document (just twice in this one, compared to dozens of occurrences of lowercase &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;h&lt;/code&gt;, for example).&lt;/p&gt;

&lt;p&gt;Some characters are in blocks of the same colour - this means that they have been recognized as duplicates as explained above. If you click
on them in the interactive version, the previous occurrence is highlighted. For example, the dark blue block containing the characters
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hamilton&lt;/code&gt; on the third line refers back to the same text at the end of the first line. This back reference means that the second occurrence can be encoded at just 1.8 bits per character.&lt;/p&gt;

&lt;p&gt;Clicking on the “Compress” button has the effect of compressing each block visually so that it occupies the amount of space it actually takes up in the gzipped file.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/49-animated-gzip-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/49-animated-gzip-compressed.png&quot; alt=&quot;Animated gzip (compressed)&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice how &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hamilton&lt;/code&gt; on the third line is compressed a lot more than the one on the first line.&lt;/p&gt;

&lt;p&gt;This visualization was inspired by &lt;a href=&quot;https://encode.su/threads/1889-gzthermal-pseudo-thermal-view-of-Gzip-Deflate-compression-efficiency&quot;&gt;gzthermal&lt;/a&gt;, a command line tool that produces a heatmap image for gzipped files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: animated heatmap&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/49-animated-gzip/data/2020-03-11-11-hamilton-songs.md.gz&quot;&gt;Gzip compressed Markdown of the Hamilton songs blog post&lt;/a&gt;, gzip, 469 B.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt; and &lt;a href=&quot;https://encode.su/threads/1428-defdb-a-tool-to-dump-the-deflate-stream-from-gz-and-png-files&quot;&gt;defdb&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/49-animated-gzip&quot;&gt;code&lt;/a&gt;, including brief instructions on how to create an animation for any gzipped file&lt;/p&gt;</content><author><name></name></author><category term="d3" /><category term="defdb" /><summary type="html">Gzip is a program for compressing files. One of the techniques used for compression is to look for duplicate parts of the file: if a particular sequence of characters has been seen before, then it can be replaced with a reference pointing back to the previous occurrence so it doesn’t have to be written in full again.</summary></entry><entry><title type="html">48. Wars</title><link href="http://tom-e-white.com/datavision/48-wars.html" rel="alternate" type="text/html" title="48. Wars" /><published>2020-11-25T00:00:00+00:00</published><updated>2020-11-25T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/48-wars</id><content type="html" xml:base="http://tom-e-white.com/datavision/48-wars.html">&lt;p&gt;This week’s visualization is of violent conflicts from 1400 to 2000.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/48-wars-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/48-wars.png&quot; alt=&quot;Wars&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/48-wars-interactive.html&quot;&gt;Interactive version.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each line is a conflict, with the length representing the duration of the conflict. The y-axis measures the magnitude of the conflict, defined as the base-10 logarithm of the total number of deaths. So for example, a war with a million deaths would be counted as magnitude 6.&lt;/p&gt;

&lt;p&gt;Using magnitudes like this follows &lt;a href=&quot;https://en.wikipedia.org/wiki/Lewis_Fry_Richardson&quot;&gt;Lewis Fry Richardson&lt;/a&gt;’s statistical treatment of wars (and other violent conflicts) in a book called “Statistics of Deadly Quarrels”, published in 1960. Brian Hayes has written a wonderful &lt;a href=&quot;(https://pdfs.semanticscholar.org/6e9c/de40cb861ac28c735748837650b9a40425d9.pdf)&quot;&gt;article&lt;/a&gt; discussing Richardson’s work.&lt;/p&gt;

&lt;p&gt;One of Richardson’s motivations for a quantitative study of violent conflicts was to understand if war was becoming more or less frequent. He concluded that “The collection as a whole does not indicate any trend towards more, nor towards fewer, fatal quarrels.”&lt;/p&gt;

&lt;p&gt;A more recent &lt;a href=&quot;https://arxiv.org/abs/1812.08071&quot;&gt;paper&lt;/a&gt; (Martelloni et al, 2018), has a similar conclusion:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;After normalizing the data for the global human population, we find that the number of casualties tends to follow a power law over the whole data series for the period considered, with no evidence of periodicity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The dataset used to draw that conclusion is from Peter Brecke’s &lt;a href=&quot;http://www.cgeh.nl/data#conflict&quot;&gt;Conflict Catalog&lt;/a&gt;, and is the data used for the visualization here. Brecke assigns each conflict to a region, and on the &lt;a href=&quot;http://tom-e-white.com/datavision/48-wars-interactive.html&quot;&gt;interactive version&lt;/a&gt; here, if you hover with your mouse over a region name it will highlight all the conflicts in that region. Be careful about reading too much into the regional distribution, however, since there are certainly biases in the data. As Brecke’s &lt;a href=&quot;https://cpb-us-w2.wpmucdn.com/sites.gatech.edu/dist/1/19/files/2018/09/Brecke-PSS-1999-paper-Violent-Conflicts-1400-AD-to-the-Present.pdf&quot;&gt;paper&lt;/a&gt; accompanying the dataset states:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;One of the early findings of this research effort was that if one restricts oneself to the nine original data sources mentioned earlier, one discovers a strong Eurocentric bias in the data, and an especially stark bias for the period prior to 1800. The Conflict Catalog attempts to at least in part correct this disparity as it moves towards completion.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It’s interesting to see from the visualization that the 18th century has relatively fewer conflicts, something that Brecke commented upon:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The relatively pacific 18th century is a puzzle. Comparably thorough data for other regions have not yet been entered into the dataset, but my translators for the Chinese and Japanese data have without knowing these findings commented to me that the 18th century had relatively few conflicts in those two well-documented countries.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: connected dot plot&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;http://www.cgeh.nl/data#conflict&quot;&gt;Conflict Catalog (Violent Conflicts 1400 A.D. to the Present in Different Regions of the World)&lt;/a&gt;, by Peter Brecke, XLSX, 790 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/48-wars&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;: &lt;a href=&quot;https://ourworldindata.org/war-and-peace&quot;&gt;War and Peace&lt;/a&gt;, Our World in Data&lt;/p&gt;</content><author><name></name></author><category term="d3" /><summary type="html">This week’s visualization is of violent conflicts from 1400 to 2000.</summary></entry><entry><title type="html">47. Alternatively Powered Vehicle growth in Europe</title><link href="http://tom-e-white.com/datavision/47-apv-growth-in-europe.html" rel="alternate" type="text/html" title="47. Alternatively Powered Vehicle growth in Europe" /><published>2020-11-18T00:00:00+00:00</published><updated>2020-11-18T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/47-apv-growth-in-europe</id><content type="html" xml:base="http://tom-e-white.com/datavision/47-apv-growth-in-europe.html">&lt;p&gt;The proportion of new cars that are petrol or diesel is in decline across Europe. More and more new cars are “Alternatively Powered Vehicles”, that is, electric or hybrid cars (and a few that use other, non-petroleum power sources). There has been quite rapid change over the last two years:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/47-apv-growth-in-europe.png&quot; alt=&quot;Alternatively Powered Vehicle growth in Europe&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There is a lot of variation from country to country, however. Norway stands out where over 80% of new cars are APVs. Czech Republish shows more modest growth in APVs.&lt;/p&gt;

&lt;p&gt;Diesel is generally declining faster than petrol, and from a lower base (although Ireland - with more diesel registrations than petrol one - is an exception). Across Europe as a whole, this quarter &lt;a href=&quot;https://www.jato.com/in-september-2020-for-the-first-time-in-european-history-registrations-for-electrified-vehicles-overtook-diesel/&quot;&gt;APV registrations overtook diesel ones for the first time ever&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Many European countries have passed laws to introduce bans on new petrol and diesel cars. This &lt;a href=&quot;https://en.wikipedia.org/wiki/Phase-out_of_fossil_fuel_vehicles#Countries&quot;&gt;page on Wikipedia&lt;/a&gt; has the details. In Norway, for example, this will be from 2025. The UK government announced today that it would be &lt;a href=&quot;https://www.theguardian.com/environment/2020/sep/21/uk-plans-to-bring-forward-ban-on-fossil-fuel-vehicles-to-2030&quot;&gt;bringing forward the ban on new fossil fuel vehicles from 2040 to 2030&lt;/a&gt;, in line with many other countries, such as Germany and Ireland.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: faceted line chart&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.acea.be/statistics/tag/category/electric-and-alternative-vehicle-registrations&quot;&gt;Alternative fuel vehicle registrations&lt;/a&gt; from the European Automobile Manufacturers’ Association (ACEA), XLSX, 7.7 MB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://ggplot2.tidyverse.org/index.html&quot;&gt;ggplot2&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/47-apv-growth-in-europe&quot;&gt;code&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><category term="R" /><category term="ggplot2" /><summary type="html">The proportion of new cars that are petrol or diesel is in decline across Europe. More and more new cars are “Alternatively Powered Vehicles”, that is, electric or hybrid cars (and a few that use other, non-petroleum power sources). There has been quite rapid change over the last two years:</summary></entry><entry><title type="html">46. Postcodes</title><link href="http://tom-e-white.com/datavision/46-postcodes.html" rel="alternate" type="text/html" title="46. Postcodes" /><published>2020-11-11T00:00:00+00:00</published><updated>2020-11-11T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/46-postcodes</id><content type="html" xml:base="http://tom-e-white.com/datavision/46-postcodes.html">&lt;p&gt;We tend to think of postcodes as boring things that don’t change much. It turns out that there has been a large growth in the number of active postcodes over the last 40 years, as this chart shows:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/46-postcodes-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/46-postcodes.svg&quot; alt=&quot;Postcodes&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(The &lt;a href=&quot;http://tom-e-white.com/datavision/46-postcodes-interactive.html&quot;&gt;interactive version&lt;/a&gt; allows you to hover to get information about the postcode area.)&lt;/p&gt;

&lt;p&gt;The area with the largest number of postcodes is &lt;a href=&quot;https://en.wikipedia.org/wiki/BT_postcode_area&quot;&gt;BT&lt;/a&gt; (Belfast), which covers all of Northern Ireland, and which overtook the next largest, &lt;a href=&quot;https://en.wikipedia.org/wiki/B_postcode_area&quot;&gt;B&lt;/a&gt; (Birmingham), in the 1990s. The one with the smallest number is GIR, a non-geographic code for Girobank. &lt;a href=&quot;https://en.wikipedia.org/wiki/ZE_postcode_area&quot;&gt;ZE&lt;/a&gt; (Lerwick) in Shetland is the geographic area with the smallest number of postcodes.&lt;/p&gt;

&lt;p&gt;There are some interesting things buried in the data that this visualization brings out (click on the &lt;a href=&quot;http://tom-e-white.com/datavision/46-postcodes-interactive.html&quot;&gt;interactive version&lt;/a&gt; to see for yourself).&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;In 1999, postcodes for the Wirral Peninsula that previously were in the &lt;a href=&quot;https://en.wikipedia.org/wiki/L_postcode_area&quot;&gt;L&lt;/a&gt; (Liverpool) postcode area were transferred to the &lt;a href=&quot;https://en.wikipedia.org/wiki/CH_postcode_area&quot;&gt;CH&lt;/a&gt; (Cheshire) area. The jumps for both these areas are very visible on the chart.&lt;/li&gt;
  &lt;li&gt;There are other jumps in the chart that are less easy to explain. In &lt;a href=&quot;https://en.wikipedia.org/wiki/BS_postcode_area&quot;&gt;BS&lt;/a&gt; (Bristol) in 1997 the number drops dramatically for a few months, before coming back to about its previous level. According to the data, over 8000 postcodes were changed in August 1997 and in December 1997, but I can’t find any external reference to this change. It could be that it’s an administrative artifact, a blip that doesn’t mean this number of postcodes were actually removed, just that the change was spread over two separate entries. (This is just speculation though, and I could be wrong about this.)&lt;/li&gt;
  &lt;li&gt;NPT was a non-standard area code for Newport (&lt;a href=&quot;https://en.wikipedia.org/wiki/NP_postcode_area&quot;&gt;NP&lt;/a&gt;) (since it had no district number) that was phased out in 1984. (Oddly, there doesn’t seem to be a corresponding jump in NP.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s to be expected that when new houses are built more postcodes will be allocated, but there’s actually a lot more change happening than that. The chart doesn’t show it (except for a few examples like Bristol above) - but there is also a significant amount of &lt;em&gt;recoding within an area&lt;/em&gt; - when a large number of postcodes are changed even though the number stays about the same.&lt;/p&gt;

&lt;p&gt;For example, in Aberdeen (&lt;a href=&quot;https://en.wikipedia.org/wiki/AB_postcode_area&quot;&gt;AB&lt;/a&gt;) in August 1990 the area was completely &lt;a href=&quot;https://en.wikipedia.org/wiki/AB_postcode_area#Coverage&quot;&gt;recoded&lt;/a&gt;, by changing the district number from 1 digit to 2 digit codes (so, for example, &lt;a href=&quot;http://www.geograph.org.uk/article/Postal-address-history-and-photo-album/3#ab&quot;&gt;AB1 changed to AB1x&lt;/a&gt;). This change is not visible on the chart.&lt;/p&gt;

&lt;p&gt;I spent longer than usual trying to come up with a postcode visualization. I wanted to do something that wasn’t just showing postcodes on a map - something more about the coding system itself, ideally. One early attempt was a &lt;a href=&quot;https://observablehq.com/@d3/sunburst&quot;&gt;sunburst diagram&lt;/a&gt;, but the sheer number of postcode areas and districts meant that it was a blur and conveyed very little information.&lt;/p&gt;

&lt;p&gt;I think it would be interesting to visualize postcode density - &lt;a href=&quot;https://en.wikipedia.org/wiki/HS_postcode_area&quot;&gt;HS&lt;/a&gt; (Hebrides) has very few postcodes over a large area, while cities like Birmingham (&lt;a href=&quot;https://en.wikipedia.org/wiki/B_postcode_area&quot;&gt;B&lt;/a&gt;) have a large number of postcodes concentrated in a relatively small area. Or perhaps area names that are most out of proportion to the size of the area they cover - some cases include &lt;a href=&quot;https://en.wikipedia.org/wiki/SY_postcode_area&quot;&gt;SY&lt;/a&gt; (Shrewsbury) that extends all the way to the coast of Wales, or the small town of Llandudno that gives its name to the &lt;a href=&quot;https://en.wikipedia.org/wiki/LL_postcode_area&quot;&gt;LL&lt;/a&gt; postcode area that covers much of north Wales.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: multi-line chart&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://geoportal.statistics.gov.uk/datasets/national-statistics-postcode-lookup-august-2020&quot;&gt;National Statistics Postcode Lookup (August 2020)&lt;/a&gt;, Office for National Statistics (CSV, 191 MB, compressed)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt; and its &lt;a href=&quot;https://observablehq.com/@d3/multi-line-chart&quot;&gt;multi-line chart&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/46-postcodes&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/List_of_postcode_areas_in_the_United_Kingdom&quot;&gt;List of postcode areas in the United Kingdom&lt;/a&gt;, Wikipedia&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20151016003852/http://www.listmark.net/blog/how-often-do-postcodes-change&quot;&gt;How often do postcodes change?&lt;/a&gt; - inspiration for this visualization&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.geograph.org.uk/article/Postal-address-history-and-photo-album/1#introduction&quot;&gt;Postal addresses: a little history and a lot of photos&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><category term="d3" /><summary type="html">We tend to think of postcodes as boring things that don’t change much. It turns out that there has been a large growth in the number of active postcodes over the last 40 years, as this chart shows:</summary></entry><entry><title type="html">45. Occupations in Crickhowell in 1881</title><link href="http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881.html" rel="alternate" type="text/html" title="45. Occupations in Crickhowell in 1881" /><published>2020-11-04T00:00:00+00:00</published><updated>2020-11-04T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881</id><content type="html" xml:base="http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881.html">&lt;p&gt;Do you know what an ostler is? There were two in &lt;a href=&quot;https://en.wikipedia.org/wiki/Crickhowell&quot;&gt;Crickhowell&lt;/a&gt; in 1881.&lt;/p&gt;

&lt;p&gt;We know this because a census has been carried out in England, Scotland, and Wales every ten years since 1801 (except in 1941 during the Second World War). The census records basic information, including occupation, about everyone resident at every address in the country on one night of the year.&lt;/p&gt;

&lt;p&gt;Eliane has been going through the census data for Crickhowell in 1881, so I thought it would be interesting to visualize people’s occupations at the time.&lt;/p&gt;

&lt;p&gt;The graphic is a &lt;em&gt;treemap&lt;/em&gt;, where each box is a separate occupation, scaled according to the number of people with that occupation (the number is printed in the box too). Different colours show different categories of occupation.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881-interactive.html&quot;&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/45-occupations-in-crickhowell-in-1881.png&quot; alt=&quot;Occupations in Crickhowell in 1881&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(The &lt;a href=&quot;http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881-interactive.html&quot;&gt;interactive version&lt;/a&gt; allows you to hover to see the category and the full text in each box.)&lt;/p&gt;

&lt;p&gt;The main categories are Service (blue - top left) and Trade (orange - bottom left), followed by
Manual, Construction, and Agriculture (green, red, lilac - top right). Despite being on
the edge of a major industrial area, there were a relatively small number of people
in the Industrial category (grey - bottom right). I was also surprised that the proportion of people working in agriculture was so small for a rural area.&lt;/p&gt;

&lt;p&gt;To answer the question from above, an ostler is someone who looks after horses for people staying at an inn. However, my favourite job title from 1881 has to be Inspector Of Nuisances. Can you find it on the &lt;a href=&quot;http://tom-e-white.com/datavision/45-occupations-in-crickhowell-in-1881-interactive.html&quot;&gt;visualization&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: treemap&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.ancestry.co.uk/search/collections/8059/&quot;&gt;1881 Wales Census, Ancestry.co.uk&lt;/a&gt; (CSV, 151 KB)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://d3js.org/&quot;&gt;d3&lt;/a&gt; &lt;a href=&quot;https://observablehq.com/@d3/treemap&quot;&gt;treemap&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/45-occupations-in-crickhowell-in-1881&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;: &lt;a href=&quot;https://www.nationalarchives.gov.uk/help-with-your-research/research-guides/census-records/&quot;&gt;Census records&lt;/a&gt;, The National Archives&lt;/p&gt;</content><author><name></name></author><category term="d3" /><summary type="html">Do you know what an ostler is? There were two in Crickhowell in 1881.</summary></entry><entry><title type="html">44. UK tree planting</title><link href="http://tom-e-white.com/datavision/44-uk-tree-planting.html" rel="alternate" type="text/html" title="44. UK tree planting" /><published>2020-10-28T00:00:00+00:00</published><updated>2020-10-28T00:00:00+00:00</updated><id>http://tom-e-white.com/datavision/44-uk-tree-planting</id><content type="html" xml:base="http://tom-e-white.com/datavision/44-uk-tree-planting.html">&lt;p&gt;The number of trees planted per year in the UK has declined over the last 50 years.&lt;/p&gt;

&lt;p&gt;This visualization shows the &lt;em&gt;percentage&lt;/em&gt; area of each country that has been used for tree planting each year, over that period:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/44-uk-tree-planting.png&quot; alt=&quot;UK tree planting rates 1971-2020, by proportion of country&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Scotland has had the largest planting rate, and Wales the smallest.&lt;/p&gt;

&lt;p&gt;I was surprised that Wales has had and continues to have such a low rate, given that it has so much space for tree planting. This is all the more reason to support organizations like &lt;a href=&quot;https://stumpupfortrees.org/&quot;&gt;Stump Up For Trees&lt;/a&gt;, which is aiming to plant a million trees in the Brecon Beacons. (You can &lt;a href=&quot;https://www.justgiving.com/stumpupfortrees&quot;&gt;donate here&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;The dashed line shows the target rate recommended by the Committee on Climate Change to meet the net-zero target. This rate translates to planting trees on approximately 1/8 of a percent of the area of the UK &lt;em&gt;every year&lt;/em&gt; by 2024 until 2050. This is more than double the rate of planting in the year up to 31 March 2020, and is not at a level seen since 1989.&lt;/p&gt;

&lt;p&gt;What are the rates in terms of land area and numbers of trees? The next chart shows the same data, but the y-axis measures millions of trees (on the left), and thousands of hectares (on the right). The 2024 target is 30 thousand hectares.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://tom-e-white.com/datavision/assets/img/44-uk-tree-planting-area.png&quot; alt=&quot;UK tree planting rates 1971-2020, by area&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I assumed a planting density of 2250 trees per hectare (from &lt;a href=&quot;http://www.cumbriawoodlands.co.uk/woodland-management/creating-a-new-woodland.aspx&quot;&gt;Cumbria Woodlands&lt;/a&gt;), which corresponds to 2 metre spacing between trees. The actual numbers planted are almost certainly different, but it gives a rough idea of what we are aiming for: about 70 million trees a year.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visualization type&lt;/strong&gt;: line chart&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data source&lt;/strong&gt;: &lt;a href=&quot;https://www.forestresearch.gov.uk/tools-and-resources/statistics/statistics-by-topic/woodland-statistics/&quot;&gt;Forest Research&lt;/a&gt;, XLSX, 98 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical notes&lt;/strong&gt;: generated using &lt;a href=&quot;https://ggplot2.tidyverse.org/index.html&quot;&gt;ggplot2&lt;/a&gt;; &lt;a href=&quot;https://github.com/tomwhite/datavision-code/tree/master/44-uk-tree-planting&quot;&gt;code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See also&lt;/strong&gt;: &lt;a href=&quot;http://tom-e-white.com/datavision/02-1m-trees.html&quot;&gt;2. One million trees in Brecon Beacons National Park&lt;/a&gt;; &lt;a href=&quot;https://www.carbonbrief.org/budget-2020-key-climate-and-energy-announcements#8we&quot;&gt;Budget 2020: Woodland expansion&lt;/a&gt; by CarbonBrief&lt;/p&gt;</content><author><name></name></author><category term="R" /><category term="ggplot2" /><summary type="html">The number of trees planted per year in the UK has declined over the last 50 years.</summary></entry></feed>