ISSS608 AY2020-21_T2 Visual Analytic DataViz Makeover2

Description: Visualisation and analysis of willingness of the public on Covid-19 vaccination

Authors

Affiliations

Jihun NAM

 

 

Published

Feb. 19, 2021

DOI

1. Overview

This post will show how to visualise the result of surveys regarding how people think about Covid-19 vaccination around the world. The original data can be found at Imperial College London YouGov Covid 19 Behaviour Tracker Data Hub Firstly, we will criticize the original charts then show how to make better visualization from the same data set.

Figure0 : Original visualisation

In this GitHub page, below information and data files were used for analysis.

2. Critique of the original charts

2.1. Clarity

2.2. Aesthetics

3. Alternative suggestion of the graph

3.1. Sktechs of graphical presentation and advantages

1) Sketch1 - Dashboard

2) Sketch2 - Tooltips

3.2. Final dashboard of visualisation using Tableau.

All the charts we designed above were rearranged for one cleaned dashboard

4. Step-by-step preparation of visualization

4.1. Preparation for data sets

Some individual country files are compressed, so you have to decompress them in csv format.

4.2. Upload raw data set in Tableau

After decompressing all files, data sets are needed to be imported to Tableau.

  1. In order to union all the 30 individual country csv files, you need to remove pre-set data set(germany.csv). Then, drag and drop “New Union” to the pane. Next, select all the csv files on the next and drag into the dialog box.

  1. For the purpose of the analysis, we need to hide unnecessary fields first. Click “Manage Metadata” button then select unnecessary fields. Next, right click and hit “Hide”. Leave required fields only as below.

  1. Change name of field of “Table Name” to “Country”. Then click “Aliases” and exclude ‘.csv’. in all Values on the right side.

  1. After changing all the name of fields regarding questions, select all the six question fields and right click to pivot the values.

  1. Then change pivoted fields’ name to “Question” and “Score”.

  1. Click “Create Group..” in “Age” field. Select all the age instances that you want to group and click “Group” button.

  1. Go to Sheet1 and drag and drop “Score” into “Filters” pane. Un-check Null values in Score because the values are not necessary to visualise.

  1. Click “Analysis” > “View data” menue and click “Extract All” to get necessary data.

4.3. Upload cleaned data set in Tableau and create necessary calculated fields for analysis

  1. Open new tableau file and connect to the extracted file created above.

  2. Create “Answer” field using “created calculated field” function as below. By using letters not digits, users may not be confused easily.

  1. It is more intuitive to express positive responses in high numbers. So, change all the score values in reverse order, using “created calculated field” function

4.4. Create gantt chart to show the survey results

We need to make a chart so that we can easily recognize the results of the survey at a glance. In order to compare the proportion of respondents easily, we can divide axes and compare them at the same time.

  1. Create “Negative Score Values” field, using “created calculated field” function. Note that you should use CNT to calculate the whole number of respondents.

  1. Create “Total Negative Scores” field using “created calculated field” function. You should click “Default Table Calculation” menu and change “Comute using” from Automatic to Answer.

  1. Create “Total Score” field using “created calculated field” function and click “Default Table Calculation” then change Compute using to “Answer”.

  1. Create “Gantt Start Point” field using “created calculated field” function.

  1. Click “Gantt Start Point” field and click Compute Using to Answer

  1. Create “Percentage” field using “created calculated field” function to visualise the size of the gantt chart

  1. Create “Gantt Percentage” field using “created calculated field” function and click “Default Table Calculation” then change Compute using to “Answer”.

  1. Drag and drop “Gantt Percetage” field into Columns and “Country” into Rows. Also Drag and drop “Answer”.

  1. Drag and drop “Question” field into “Filter” pane and change the Marks to “Gantt Bar”. Lastly, Drag and drop “Percentage” field onto “Size” button to show the percentage of respondents.

  1. Click “Answer” field and “Sort” menu. Check “Manually” in “Sort by” menu and change the order as below

  1. Create “Avg Score” field using “created calculated field” function. Note that you should use “CNT” field to calculate sum of respondents.

  1. Change the Gantt chart color

  1. Chage Marks to “Circle” and drag and drop “Avg Score” onto “Label” button. Then click and change “Compute using” to cell

  1. Click lable and change Font format and alignment as below

  1. Click “Avg Score” in Columns and check “Dual Axis”

  2. Right click above axis and click “Edit axis”. Check “Fixed” range for changing the range of axis from 1 to 5

  1. After changing Size of Circle chart and color to “White”

  1. Add reference to show “0%” more clearly

  1. Add reference to show “Average line”. Type label “ Score =

  1. The final Gantt chart!

4.5. Create Confidence Interval chart

The number of respondents are different among countries. Therefore, we cannot confidently say that the average scores of answers we have created above reflect correctly the opinion of whole country. For this reason, we can show the “confidence interval range” to give the better information to users. Based on the formula, when the number of sample increases, the range of confidence interval shorten.

  1. First of all, we need to create 7 calculated field to visualise confidence level. The formula for the fields are below.

1.. (CI) No of Strongly agree

IF [Answer]=“Strongly agree” THEN [CNT] ELSE 0 END

2.. (CI) % of Strongly agree

SUM([(CI) No of Strongly agree])/SUM([CNT])

3.. (CI) Z_95%

1.959964

4.. (CI) Prop_SE

SQRT(([(CI) % of Strongly agree]*(1-[(CI) % of Strongly agree]))/SUM([CNT]))

5.. (CI) Prop_margin of Error 95%

[(CI) Z_95%]*[(CI) Prop_SE]

6.. (CI) Prop_Upper Limit 95%

[(CI) % of Strongly agree] + [(CI) Prop_margin of Error 95%]

7.. (CI) Prop_Lower Limit 95%

[(CI) % of Strongly agree] - [(CI) Prop_margin of Error 95%]

  1. Drag and drop “(CI) % of Strongly agree” field into Columns and “Country” into Rows

  1. Drag and Drop “(CI) Prop_Lower Limit 95%” and “(CI) Prop_Upper Limit 95%” fields onto the column axis.

4. Change Measure Values graph to “Line” and click left button and change to “Path”

  1. Right click on the upper axis and check “Synchronize Axis”

  1. Click “Contry” in Rows and check “Sort” to sort Descending order by “(CI) % of Strongly agree”.

  1. Add reference line to show average of “(CI) % of Strongly agree” over the countries.

  1. Add tooltip to show the detail figures

  1. Create a new worksheet for showing total number of respondents by country. Drag and drop “Country” field into Rows and “CNT” onto “Label” button. Also change the color shading to make clearer.

  1. Click “Country” field to sort by “(CI) % of Strongly agree”

4.6. Create tooltip charts for showing detail of answers

  1. Changes of answers through weeks

  1. Answers by Gender

  1. Answers by Age

  1. Answers by Employ Status

  1. Answers by Household Children

  1. Detailed figures for Country_gantt chart

  1. show all tooltip charts when hover over to the “Country_gantt chart”

4.7. Create Dashboard

  1. Click Dashboard icon and change Size to “Automatic”

  1. Drag and drop “A Text” object to the pane

  1. Drag and drop “CI_Chart” and “Country_gantt” on the pane side by side

  1. Move “Select question” filter and “Answer” legend above the two charts

  1. Click triangle and check “Single Value (dropdown)”

  1. Drag and drop “A Text” object below the “Answer” legend. then type below

  1. Adjust sizes of boxes we put

  1. Drag and drop more “A Text” objects between “Answer” label box and chart. Then type titles repectively.

  1. Drag and drop “CI_chart_respondents” next to “CI_chart”.

  1. The final Dashboard

5. Major observations

5.1. People in EU are more likely to get vaccination comapred to that in Asia

5.2. The older, the more agree to vaccination

“Q1. if a Covid-19 vaccine were made available to me this week, I would definitely get it:”

5.3. As times go by, people think more positively toward vaccine and government

Q3. I am worried about potential side effects of a COVID19 vaccine

Q4. I believe government health authorities in my country will provide me with an effective COVID19 vaccine

The END


Footnotes