Click the Original, Code and Reconstruction tabs to read about the issues and how they were fixed.

Original


Source: https://www.statista.com/chart/3599/americas-favorite-video-game-genres/


Objective The objective of the original data visualisation is to tell us the most popular video game genres in America in the year 2014.We live in an age where the gaming industry is bigger than the Hollywod and the Music Industry. The data is in the form of a pie-chart with each genre having a specific colour.The Target Audience for this would be the people of the gaming world, analysts interested in data and the companies that develop games.

The visualisation chosen had the following three main issues:

  • The original data visualisation is a pie-chart and as we already know, the angle and area are inferior to position in terms of accuracy. Hence, a Bar Chart would be more accurate than a Pie-Chart.

  • We cannot rely on the visuals alone to make our comparisons and tend to look at the values to make our decisions. Pie-Charts tend to be confusing to the reader when two or more segments have similar proportions. Often we depend on colour to make our analysis. So,it is not always safe to use a Pie-Chart.

  • Pie charts with smaller proportions are very hard to see and label. Sometimes, the segments seem to be very small and are hardly visible to make further readings

Reference McCarthy, N., 2020. Infographic: America’s Favorite Video Game Genres. [online] Statista Infographics. Available at: https://www.statista.com/chart/3599/americas-favorite-video-game-genres/ [Accessed 11 May 2020].

Code

The following code was used to fix the issues identified in the original.

library(ggplot2)
library(readr)
library(dplyr)
library(tidyr)
getwd()
## [1] "C:/Users/arjun/AppData/Local/Temp/Temp2_assignment2template1950 (1).zip"
# No dataset is provided with the original Data Visualisation, the values are hardcoded

# Vector genre is created
genre <- c('Action', 'Shooter', 'Sport Games', 'Role-playing', 'Adventure', 'Fighting', 'Racing', 'Strategy', 'Family     Entertainment', 'Casual', 'Other/compilations', 'Childrens entertainment', 'Arcade', 'Flight')

# Vector Percentage is created
Percentage <- c(28.2, 21.7, 13.3, 9.5, 6.0, 6.0, 5.2, 4.1, 3.3, 1.3, 1.1, 0.1, 0.1, 0.1)

#Data-Frame df is created
df <- data.frame(genre, Percentage)

#The barchart is plotted using ggplot2
plt <- ggplot(data=df, aes(x=genre, y=Percentage))+geom_bar(stat="identity", fill="steelblue", width = 0.5) +geom_text(aes(label=Percentage), hjust=-0.3) +ggtitle("America's favorite video game genres")

Data Reference

McCarthy, N., 2020. Infographic: America’s Favorite Video Game Genres. [online] Statista Infographics. Available at: https://www.statista.com/chart/3599/americas-favorite-video-game-genres/ [Accessed 11 May 2020].

Reconstruction

The following plot fixes the main issues in the original.