The Data

Visualization 1

Version 1


Intended Purpose

For my first visualization, I wanted to depict the relationship between trust in the government and an individual’s likelihood of compliance with government policies and recommendations.

Intended Audience

The intended audience of this visualization is public policymakers and public health officials whose strategies for targeting compliance with public health policies could be informed by an understanding of the role of trust in government in driving compliance.

Description of Version 1

My first version of this visualization was a line plot with geom_smooth that was facet-wrapped by country. I got feedback here that the colors can be a bit difficult to differentiate between countries, and I also got a suggestion from a reviewer to change the color of the confidence interval to match the color of each line and get rid of the legend because it is superfluous.

Version 2


Description of Version 2

Rather than changing the color of the confidence intervals, in the interest of depicting uncertainty in a more accessible or easily-understood way, I decided to generate bootstrapped data and create Hypothetical Outcome Plots to visualize uncertainty in the line of best fit. I acknowledge that using this method doesn’t show how the confidence intervals become larger when we are fitting the line to only a few data points, which is why I felt that it would be more informative to viewers to also include the data points themselves using geom_point. I also removed the legend, as it was superfluous, and changed the aesthetic of the plot using the ggdark package so the colors of each country would stand out more.

Takeaways

What the final version of this visualization depicts is that for many of these countries, people who trust their government more are also more likely to comply with what the government is telling them to do. However, there are also countries in which individuals showed high compliance regardless of how much trust they had in their government.

Visualization 2

Version 1


Intended Purpose

For my second visualization, I wanted to depict the distribution of adoption of preventive behaviors by country.

Intended Audience

The intended audience of this visualization, like the first one, could be public policymakers and public health officials. It could also be interesting to the general public to see how norms around adoption of preventive behaviors vary around the world.

Description of Version 1

My first version of this visualization is a ridgeline plot showing the number of preventive behaviors adopted for each country. It shows that for most countries from which we sampled – but notably not the U.S. and Australia – people largely adopted five or more preventive behaviors. The U.S. and Australia showed a broader range in the number of preventive behaviors adopted. A limitation of my first visualization was that it was not broken up into specific preventive behaviors, so it was not possible to parse out why certain countries had different distributions (i.e. what behaviors were driving those differences).

Version 2


Description of Version 2

To address the issue of my first plot not showing the breakdown of specific preventive behaviors, instead of using a ridgeline plot I visualized the adoption of each specific preventive behavior using a dumbbell dot plot. The average adoption of each behavior in each country was visualized using geom_point, and I used geom_line to show the range of average adoption across all nine countries. I also clustered the countries by region and ordered the behaviors by the range of their average adoption. Finally, I changed the aesthetic of the plot using the ggdark package.

Takeaways

Using geom_point and geom_line in my final visualization made it easier to see the distribution across countries – and how that distribution varied by behavior. Mask wearing, for instance, showed a broad spread across countries, with the U.S. and Australia showing low adoption while over 50% of individuals in the other countries reporting adoption of that behavior. In contrast, hand washing showed a small range, with average adoption clustered near 100% of individuals across countries.

Visualization 3

Version 1


Intended Purpose

For my third visualization, I wanted to convey the overlap between each of the predictor variables related to perception of government response.

Intended Audience

The intended audience of this visualization is scientists or readers of this study who are more interested in how these variables were operationalized. Addressing multicollinearity between predictors is the kind of issue that readers of an academic paper would want to see but that laypeople would likely not focus on.

Description of Version 1

To communicate correlations between predictor variables, I created a heatmap of the correlation matrix. Some helpful feedback I got from peer reviewers included adding a label to the fill, changing the direction of the color scale so it would be more intuitive, and fixing the labels so the variable names were more complete.

Version 2


Description of Version 2

To address issues raised by reviewers, added a label to the fill, changed the direction of the color scale so it would be more intuitive, and fixed the labels so the variable names were more complete. I also chose to use a color scale that more closely corresponded with what a layperson might think of as heat so it would be easier to understand with higher correlations being an increase in intensity. I debated about what direction would be most intuitive but ultimately decided that darker colors would be more easily understandable as higher correlations.

Takeaways

The final visualization shows that the measures of trust, government performance, and government preparedness were all highly correlated with each other. Someone’s perceived control over whether they would contract COVID-19 was moderately positively correlated with positive perceptions of government. In contrast, having a higher perception of risk was slightly negatively correlated with positive perceptions of government.

Bonus Heatmap


Rationale

After making edits to my third visualization, I felt that I had not considerably expanded my toolkit of heatmap visualization, so I added an additional visualization depicting the adoption of preventive behaviors by age. This heatmap shows the average number of behaviors adopted in each age group for each country. Some countries display visible trends; the U.S. shows low adoption of preventive behaviors that bottom out for 50-54 year-olds, whereas Nigeria shows high overall adoption of preventive behaviors that peaks for individuasl age 45-49.