Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Florence Nightingale's Polar Plot

DS 2023 | Communicating with Data

Overview

DIAGRAMS are of great utility for illustrating certain questions of vital statistics by conveying ideas on the subject through the eye, which cannot be so readily grasped when contained in figures. This aid has therefore been called in to give greater clearness to the numerical results in the body Report and in the Appendix.

    — Florence Nightingale, 1858, Mortality of the British Army, p, 1. Source

The main end of Statistics should not be to inform the Government as to how many men have died, but to enable immediate steps to be taken to prevent the extenuation of disease and mortality.

    — Florence Nightingale, 1858, Notes on Matters Affecting the Health, Efficiency, and Hospital Administration of the British Army, p. 329. Source

Full and minute statistical details are to the lawgiver, as the chart, the compass, and the lead to the navigator.

    — Lord Brougham, 1856, Judicial Statistics Source.

This notebook recreates the Florence Nightingale’s famous polar plot of British deaths during the Crimean War.

The First Version

This is Nightingale’s first attempt to visualize data relating to the disease and mortality of British soldiers during the Crimean War:

This version of the visualization is known as a “bat’s wing” diagram. It compares the causes of English soldiers’ deaths during the Crimean War from April 1854 to March 1855 by month (right) with deaths from April 1855 to March 1856 (left).

The diagram uses color shading to signify cause of death:

  • The green shaded area on the right represents preventable deaths due to disease

  • The red area stands for deaths caused by wounds.

  • The gray area stands for deaths from all other causes.

The diagram use length of each radial line to signify death rate, i.e. length is proportional to the death rate for that month. Notice the big spike in deaths in January 1855.

Note, however, that both the text and the appearance imply that it is the shaded area that is proportional to the death rate, rather than the length of the radial lines.

This is misleading, because the area increases disproportionately to the radius.

Florence recognised this error and replaced the bat wing diagram in later documents.

The Principle of Proportional Ink

In modern terms, Nightingale’s first draft violates the principle of proportional ink.

The concept of proportional ink is simply that areas of shapes, e.g. shaded wedges, in a visualization must be proportional to the data values they represent.

Since areas are quantifiable, we can enforce the principle fairly easily.

The Revised Version

This is Nightingale’s revised version:

Nightingale, Florence. 1858. Notes on Matters Affecting the Health, Efficiency, and Hospital Administration of the British Army: Founded Chiefly on the Experience of the Late War. London: printed by Harrison. http://archive.org/details/b20387118. Page 310–11.

Below is the annotation in lower-left, transcribed and slightly modified for readability. This text tells the reader how to interpret that graphic. Note how she goes to to great lengths to explain the principle by which the magnitudes in the data map onto the areas and colors of the chart:

  • The areas of the blue, red, and black wedges are each measured from the centre as the common vertex.

    • The blue wedges measured from the centre of the circle represent area for area the deaths from Preventable or Mitigable Zymotic diseases.

    • The red wedges measured from the centre the deaths from wounds.

    • The black wedges measured from the centre the deaths from all other causes.

  • The black line across the red triangle in November 1854 marks the boundary of the deaths from all other causes during the month.

  • In October 1854 and April 1855, the black area coincides with the red, in January & February 1856, the blue coincides with the black.

  • The entire areas may be compared by following the blue, the red, and the black lines enclosing them.

A Reproduced Version

Let’s try to reproduce the second version to see exactly how the magnitudes in the data map onto the wedge areas of the chart. For although we see that she corrects the problem, it is not clear how she corrected it.

To do this, we will take the data she used to create visualization and use Plotly’s polar graph function to create the plot.

Get the Data

The data on which the graphic is based are found in two sources. Here we show a scanned image of the page from one source:

Nightingale, Florence. 1858. Notes on Matters Affecting the Health, Efficiency, and Hospital Administration of the British Army: Founded Chiefly on the Experience of the Late War. London: printed by Harrison. http://archive.org/details/b20387118. Page 315.

Note that “Annual rate of Mortality per 1000” is an annualized rate — it is what the mortality rate would be if that month’s death rate continued for an entire year. It is computed by following formula:

M=DS×1000×12M = \frac{D}{S} \times 1000 \times 12

where

  • MM is the annualized rate of mortality for a given cause in a given month

  • DD is the number of deaths by a given cause in a given month

  • SS is the estimated average monthly strength of the army

So, the value for deaths by infection in December 1854 is computed as follows:

631.5

Below is a transcription of these data into a CSV string.

Note we can use the information in the image above as a data dictionary.

We begin by importing our libraries.

Next, we convert our string data into a dataframe.

Loading...

We verify that Pandas created the correct data types for our features.

STRENGTH int64 DISEASE int64 INJURY int64 OTHER int64 DISEASE_RATE float64 INJURY_RATE float64 OTHER_RATE float64 dtype: object

Reshape the Data

Now we reshape our data into suitable form.

  • We only need the rates; she has already done the work for us.

  • We want the the table in narrow form to make it easier to compute the radius.

Loading...

Map Rate to Radius

The problem with Nightingale’s original plot is that the area of a sector of a circle is not linearly proportional to it the radius.

Since the area of a circle sector increases as a square of the radius, just using the radius exaggerates differences between values.

To overcome this problem, we need to map the data values onto the area of the circle, and then compute the radius using the following formula:

r=A(θ/2)\Large r = \sqrt{\dfrac{A}{(\theta/2)}}

Given this equation, we can map the number of deaths to AA and then compute the appropriate rr to use in our plot.

Here we define a function to do this, and then apply it to our data frame.

We then apply this formula to the three causes.

Loading...

Finally, we create a wide table representation of the radius data.

Loading...

Visualize the Result

Before visualizing, we organize the data we will need to make our plot.

Since we are going to plot dates along the angular axis (which replaces the x-axis) and causes along the radial axis (which replaces the y-axis), we create a DATE and a CAUSE table.

Loading...

We create a string representation of months for labeling.

Loading...
Loading...

Now we create a function to generate a polar plot for a given year from our data using Matplotlib.

<Figure size 2000x1000 with 2 Axes>
<Figure size 2000x1000 with 2 Axes>

Notes and Queries

  • Missing is the black line that separates the gray and pink wedges from the blue.

  • Why not simply show a pie or bar chart of aggregate statistics?

  • Why are there geographic names on the diagram? (Crimea and Bulgaria are at 0° and 90° respectively.)

Other Visualizations

Here we explore some alternate ways to represent the same data.

They are all expressive of the data.

But are they equally effective in communicating with the data?

To create these, we first define the sort order of causes to be consistent in our representations.

['D', 'O', 'I']

Next, create a wide dataframe RW out of RATES, to show frequency of occurrence by cause of death over time.

A. Heatmaps

We can immediately display this as a heatmap.

Loading...

Or, we may use Seaborn’s function.

<Figure size 1000x100 with 1 Axes>

B. Stacked bar chart

Next, we look at various bar charts.

<Figure size 1000x500 with 1 Axes>

C. Grouped bar chart

<Figure size 1000x500 with 1 Axes>

D. Line graph

<Figure size 1000x500 with 1 Axes>

E. Area chart

<Figure size 1000x500 with 1 Axes>

F. Stacked area chart

<Figure size 1000x500 with 1 Axes>

G. Pie chart of aggregate data

<Figure size 640x480 with 1 Axes>

H. Bar chart of aggregate data

<Figure size 640x480 with 1 Axes>

I. Normed Area Charts

<Figure size 1000x500 with 1 Axes>
<Figure size 1000x500 with 1 Axes>