Data Visualization and Infographics


Data Visualization and Infographics

Michael
Good morning, and welcome. Today we're exploring data visualization with ideas from Alberto Cairo, a professor of visual journalism and visualization at the University of Miami, and the author of The Functional Art and The Truthful Art. His central message is encouraging: effective visualization is within reach of almost anybody.

Simon
That is important because journalists often assume visualization requires advanced coding or programming languages. Cairo's argument is that you can begin with a few principles and freely available tools, using graphics both to explore data and to communicate findings in your reporting.

Michael
He distinguishes between infographics and data visualization. Infographics can be pictorial explanations, such as a three-dimensional model of a spacecraft showing its components. Data visualization is the transformation of numbers into graphs, maps, and charts so that we can extract meaning from those numbers.

Simon
And his broad definition is useful: a visualization is any visual representation, usually of data, that lets you explore the data, extract meaning from it, and communicate it. In that sense, visualization gives us a kind of superpower—it lets us see beyond the complexity that is hidden in a mass of information.

Michael
The fundamental principle is visual encoding. You start with numbers and map them onto visual properties of objects. A bar can vary in length or height, an object can change position on a common axis, a bubble can change in area, a pie slice can change in angle, and lines can vary in weight.

Simon
Color is another encoding method. On a map, for example, different shades can represent different values. The important point is that numbers do not become meaningful merely because we put them on a screen; we choose a visual property that represents each number.

Michael
Cairo uses global temperature records as an example. Looking at temperatures from the year 1000 to 2000 in a spreadsheet would make it difficult to see anything. But when those values are mapped onto a line chart, a long and complicated data set becomes a compact visual pattern.

Simon
That is the famous hockey-stick chart. The horizontal axis shows years, and the vertical axis shows temperature in Celsius relative to the average around the middle of the twentieth century. The blue line represents estimated temperatures, the black line shows the overall trend, and the gray area represents uncertainty.

Michael
The chart makes a pattern visible: temperatures stayed below that twentieth-century average for much of the period from roughly 1000 to 1900, then began rising sharply around the beginning of the twentieth century. Cairo connects that rise with carbon dioxide emissions and increasing fossil-fuel use. The chart's value is that it reveals trends and patterns hidden in the spreadsheet.

Simon
Data visualization has also become more common because influential presenters and news organizations have popularized it. Hans Rosling, the global-health professor whose website was Gapminder.org, became especially famous after a 2006 TED Talk that combined enthusiastic speaking with data graphics.

Michael
News organizations have helped too. The Wall Street Journal, The New York Times, The Washington Post, the Los Angeles Times, Vox, and FiveThirtyEight are among the organizations using visualization extensively. Well-designed graphics have often become some of their most popular online stories, and data visualization has even contributed to Pulitzer Prize-winning journalism.

Simon
Examples include a Washington Post visualization about people killed in police shootings and the Tampa Bay Times project Failure Factories, which examined racial segregation and declining school performance in some Tampa-area districts. These projects show that visualization is not decorative; it can be a core part of serious journalism.

Michael
The sophisticated graphics we see in the media can make visualization seem inaccessible because they are often created with HTML, CSS, JavaScript, or the JavaScript library D3. Cairo says learning those tools is valuable, as are languages such as R, but coding should not be the first barrier.

Simon
A better first step is to experiment with tools that let you create visualizations quickly. Cairo points to free tutorials covering basic Excel, including pivot tables; iNZight, a free and open-source tool for data exploration; QGIS, a free and open-source mapping tool; and Adobe Illustrator, which is widely used in newsrooms even though it is not free.

Michael
His quick demonstration uses RAW, or RAWGraphs, a free browser-based tool created by a visualization lab at the Politecnico di Milano. You copy and paste data into the browser, select a chart type, and then assign variables to visual dimensions.

Simon
Using World Bank measures such as life expectancy, children per woman, GDP per capita, infant mortality, population, and region, Cairo creates a scatterplot. He places children per woman on the horizontal axis and infant mortality on the vertical axis, revealing a relationship between the two variables.

Michael
Then he uses population to control the size of each bubble and region to control its color. Country names can be added as labels, although that makes the chart messy, so he removes them for the cleaner version. The finished result can be downloaded as an SVG for further editing, or RAW can generate HTML and SVG code to place the chart on a website.

Simon
So the tool is not the hardest part. Cairo's larger point is that tools are only one portion of the work. The more important question is whether the visualization follows sound principles.

Michael
He condenses those principles into four. First, a good graphic is based on good data. Second, it should look good, with attention to typography, color, composition, and basic graphic design. Third, it must represent the data accurately. Fourth, it should show enough data for readers to understand what is happening.

Simon
That last principle comes with an important vocabulary choice. Cairo dislikes saying that visualization is about simplification. He prefers clarification, because sometimes clarifying a story requires showing more data rather than less.

Michael
The first principle means checking where data came from, how it was generated, and what it actually measures before opening a visualization tool. His humorous example is a map of heavy-metal bands in Europe, measured as bands per million people.

Simon
The map appeared plausible because Finland had a much higher rate than Spain, matching the intuition that darker, less sunny places have more heavy-metal bands. But plausibility is not verification. Cairo checked the stated source, Encyclopedia Metallum, and considered whether it was counting genuinely heavy-metal bands rather than acts such as Bon Jovi, Foreigner, or Journey, which he says should not be classified that way.

Michael
After checking the source and finding that the listed bands were being treated as heavy metal, he felt more comfortable retweeting the map. The general lesson is that we should not share a graphic simply because it confirms something we already believe.

Simon
A more serious example involves intimate-partner-violence rates. Different sources showed very different rates for countries such as Cameroon because they used the term IPV to measure different things. One source might count only physical violence, while another might also count verbal violence.

Michael
That is why comparing numbers from different sources can mean comparing apples to oranges. We need to read the methodology, understand what each source measured, and consult experts. Cairo's advice is not to download a data set and immediately graph it; first verify the data and ask statisticians or subject-matter experts whether the interpretation is sound.

Simon
The fourth principle—showing enough data—is illustrated by unemployment rates during the first months of different presidential administrations. A table showing only the average unemployment rate in the first three months may be mathematically correct, but it leaves out the context of what each president inherited.

Michael
A more clarifying graphic would show the unemployment rate at the beginning and end of each administration, along with the change in percentage points. That helps answer questions such as: What was the baseline? What changed? And compared with what?

Simon
Cairo also says that a chart shows as much as it hides. A map of counties with the lowest kidney-cancer death rates might appear to show that rural living protects people. But a map of the highest rates also contains many rural counties.

Michael
The explanation is statistical variation in small populations. If a county has only ten people and one dies of cancer during a decade, its rate is ten percent. If nobody dies the following decade, its rate is zero. Small samples vary much more than large samples, so the pattern does not by itself prove that diet, exercise, or rural family ties caused the difference.

Simon
The same warning applies to the national murder rate. A national line chart can correctly show that the rate rose in the 1980s, fell during the 1990s and 2000s, and increased again in more recent years. But aggregation may conceal the fact that particular neighborhoods in cities such as Baltimore, Chicago, Miami, and Milwaukee are pushing the overall line upward.

Michael
A responsible presentation would show both the national trend and the outliers or local areas contributing to it. The goal is not to overwhelm readers with every possible number, but to provide enough context that the trend is not misunderstood.

Simon
Accuracy also means using truthful scales. Cairo discusses a congressional graphic attacking Planned Parenthood. It made cancer-screening procedures appear to fall dramatically while abortion procedures appeared to rise at a similar rate, creating a striking X shape.

Michael
But the underlying numbers were on very different scales: screening went from more than two million procedures to about one million, while abortions rose from roughly 300,000 to about 320,000. Putting those values on a misleading visual scale distorted the comparison. The graphic also omitted other relevant services, such as sexually transmitted disease testing.

Simon
A redesigned graphic included the broader range of services and represented the numbers accurately. The principle is simple: a graphic should attract attention, but visual impact cannot come at the expense of truthful representation.

Michael
Maps create similar problems when the visual encoding does not match the question. A county-level map of the 2016 presidential election made the Republican victory look like an overwhelming geographic landslide because it colored territory, even though the national vote was much closer.

Simon
A map that sizes counties according to the number of voters gives a more population-sensitive picture, but Cairo still says neither map is the most important first graphic for a presidential election. The key measure is electoral votes, so a chart showing each candidate's electoral votes—or a cartogram that distorts areas according to electoral votes—better represents what determined the result.

Michael
His example of a political T-shirt makes the same point humorously. A state-level map cannot accurately divide the country into two political groups because states contain diverse populations. A map can be mathematically correct while encouraging an interpretation that is not supported by the underlying reality.

Simon
So how do we choose a graphic form? Start by asking, 'What is this for?' A visualization is not merely a pretty picture; it is a tool for understanding. If you want to show geographic patterns in unemployment, use a map. If you want readers to rank states or counties, use a bar chart rather than a map.

Michael
The Data Visualization Catalog and Ann K. Emery's website can help with that decision. They provide examples of graphic forms and explanations of when to use bar graphs, maps, histograms, and other charts.

Simon
A useful general rule concerns accuracy. Position, length, and height measured against common axes usually make it easier for people to compare values accurately. Area, angle, and color may be effective for showing a broad pattern, but they are generally less precise for ranking or exact comparison.

Michael
For example, a New York Times map used the size of bubbles to show where Democratic or Republican votes were concentrated. That works as a big-picture view, but it would not be the best way to rank every county. A bar chart with a common baseline would support that task much better.

Simon
Cairo's fictional music-survey example makes the same distinction. Students at the University of Miami are asked in 1994 and again in 2014 which genre they prefer. Two pie charts can show the distribution in each year, but comparing the angles and areas across the two pies makes it difficult to tell whether samba, hip-hop, or reggaeton became more or less popular.

Michael
Because the stated purpose is to show change over time, a line chart would be more appropriate. Each genre could move upward or downward along a common scale, allowing readers to see changes without reading every number. The chart form should serve the task, not simply look familiar.

Simon
There is also an ethical question: should a visualization be persuasive? Cairo says it is appropriate to attract attention and introduce some emotion through headlines, color, animation, music, or explanatory writing, just as journalists use emotion in prose.

Michael
But persuasion must follow truthfulness. An animation such as The Fallen of World War II can make the accumulation of deaths emotionally powerful, yet the emotional presentation should direct people toward the evidence rather than replace it. The data must merit the emotional treatment.

Simon
Writing is part of visualization too. The headline, introduction, captions, explanations, and annotations form what graphics teams at The New York Times call the annotation layer. Text can explain what a chart measures, identify limitations and caveats, and highlight the intended message.

Michael
Visual literacy matters because not everyone reads charts in the same way. A Pew Research Center test found that 63 percent of adults correctly interpreted a scatterplot showing the relationship between sugar consumption and decayed teeth, while 37 percent did not.

Simon
Cairo sees both bad and good news there. It is concerning that many people struggle with a graphic form that has existed for more than a century, but the majority could read it. Presenters such as Hans Rosling and news organizations may be helping people become more familiar with scatterplots and other less-common forms.

Michael
Short captions can support that learning. Explaining that horizontal position represents one variable and vertical position represents another can help readers understand a scatterplot instead of leaving them to guess.

Simon
What quick red flags should we look for? First, inspect the scales, axes, and baselines. Manipulating scales is one of the most common ways to make a chart misleading. In maps, also pay attention to how numerical values have been divided into color classes, because classification choices can change the impression.

Michael
Another red flag is inferring more than the chart actually shows. A chart can show that two things occur together or that one happens before another, but it does not automatically establish causation. We should resist the brain's tendency to invent connections simply because a pattern is visible.

Simon
Cairo describes this as a danger in interpretation rather than merely in drawing. Visualization can make real patterns visible, but our minds may then add causal stories that the data do not justify. We need to remember that a chart shows only what it shows.

Michael
His favorite visualization is John Snow's 1854 map of the cholera outbreak in London—not Jon Snow from Game of Thrones. Cairo values not just the black-and-white map itself, but the reporting and investigative process that led to it. He recommends The Ghost Map by Steven Johnson and Cartographies of Disease from ESRI Press for readers who want to learn more.

Simon
So the complete workflow is: understand the question, verify the data and its methodology, choose a graphic form that supports the intended task, encode the values accurately, provide enough context, and refine the design so it is readable and attractive.

Michael
And you do not need to begin with advanced programming. Tools such as RAWGraphs, iNZight, QGIS, Excel, and widely available design software can help you start exploring and communicating data. Coding can come later, after you have developed judgment about data, design, accuracy, and purpose.

Simon
The central lesson is that visualization is not simplification for its own sake. It is clarification: making patterns visible while preserving the context, uncertainty, scale, and limitations needed to understand them.

Michael
And before sharing or publishing a graphic, ask the questions Cairo keeps returning to: Where did the data come from? What exactly was measured? What does this graphic show, and what does it hide? Are the scales fair? Does the form match the task? And have I shown enough information for the reader to reach a responsible conclusion?

Ask anything
We've read this whole study set, so questions about it get the best answers.